Skip to content

Commit

Permalink
Better fish
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnordlund committed Nov 13, 2015
1 parent e085b4c commit fc792b2
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions bin/rbenv-sh-update
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,21 @@ case "$shell" in
fish )
echo "if command rbenv update $@"
if [ -z "$quiet" ]; then
echo " if isatty stdout; printf \"\\e[1;32mReloading rbenv\\e[0m\\n\""
echo " else printf \"Reloading rbenv\\n\"; end"
echo " if isatty stdout"
echo " set_color --bold"
echo " end"
echo ' echo "Reloading rbenv"'
echo " set_color normal"
fi
if [ -z "$noop" ]; then
echo " source (rbenv init -|psub)"
fi
if [ -z "$quiet" ]; then
echo " if isatty stdout; printf \" \\033[1;32m|\\033[0m done\\n\""
echo " else printf \" | done\\n\"; end"
echo " if isatty stdout"
echo " set_color --bold"
echo " end"
echo ' echo " | done"'
echo " set_color normal"
fi
echo "end"
;;
Expand Down

0 comments on commit fc792b2

Please sign in to comment.