I've installed rvm.fish :
yt at GERICOM in ~
↪ cat .config/fish/functions/rvm.fish
function rvm -d 'Ruby enVironment Manager'
# run RVM and capture the resulting environment
set -l env_file (mktemp -t rvm.fish.XXXXXXXXXX)
bash -c 'source ~/.rvm/scripts/rvm; rvm "$@"; status=$?; env > "$0"; exit
$status' $env_file $argv
# apply rvm_* and *PATH variables from the captured environment
and eval (grep '^rvm\|^[^=]*PATH\|^GEM_HOME' $env_file | grep -v '_clr='
| sed '/^[^=]*PATH/y/:/ /; s/^/set -xg /; s/=/ /; s/$/ ;/; s/(//; s/)//')
# clean up
rm -f $env_file
end
however doing a "rvm get stable --auto", i get a lot of errors :
fish: Nom de commande illégal 'get_usage()'
/tmp/9303 (ligne 6): get_usage()
^
fish: Nom de commande illégal '{'
/tmp/9303 (ligne 7): {
^
fish: Nom de commande illégal '}'
/tmp/9303 (ligne 9): }
^
fish: Nom de commande illégal 'get_latest()'
/tmp/9303 (ligne 15): get_latest()
^
fish: Nom de commande illégal '{'
/tmp/9303 (ligne 16): {
may be it's not rvm.fish in user but rather the function rvm in
"~/.rvm/bin/rvm"
yt at GERICOM in ~
↪ which rvm
/home/yt/.rvm/bin/rvm
yt at GERICOM in ~
↪ cat /home/yt/.rvm/bin/rvm
#!/usr/bin/env bash
if (( ${rvm_ignore_rvmrc:=0} == 0 ))
then
declare rvmrc
for rvmrc in /etc/rvmrc "$HOME/.rvmrc"
do
if [[ -f "$rvmrc" ]]
then
if grep '^\s*rvm .*$' "$rvmrc" >/dev/null 2>&1
then
printf "%b" "
Error:
$rvmrc is for rvm settings only.
rvm CLI may NOT be called from within $rvmrc.
Skipping the loading of $rvmrc
"
exit 1
else
source "$rvmrc"
fi
fi
done
unset rvmrc
fi
export rvm_path
if [[ -z "${rvm_path:-}" ]]
then
if (( UID == 0 )) && [[ -d "/usr/local/rvm" ]]
then rvm_path="/usr/local/rvm"
elif [[ -d "${HOME}/.rvm" ]]
then rvm_path="${HOME}/.rvm"
elif [[ -d "/usr/local/rvm" ]]
then rvm_path="/usr/local/rvm"
else echo "Can't find rvm install!" 1>&2 ; exit 1
fi
fi
# allow disabling check temporary
: rvm_is_not_a_shell_function:${rvm_is_not_a_shell_function:=1}
# if to prevent fork-bomb
if source "${rvm_scripts_path:="$rvm_path/scripts"}/rvm"
then
rvm "$@"
else
echo "Error sourcing RVM!" 1>&2
exit 1
fi
yt at GERICOM in ~
↪
the file "/usr/local/rvm" doesn't exist on my lubuntu system.
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users