Joined July 2013
·

Rubén Laguna

59.405519,17.947774
·
·
·

Posted to fish prompt with rvm and git info over 1 year ago

Thank you for posting this, really useful!

I had to change some thing to make it work for me, though...

1) In function rvmprompt I had to change the "if [ (which rvm) ]" to " if type -t rvm >/dev/null" . Since in my system rvm is not an executable in the path but a function (following the instructions at http://rvm.io/integration/fish) so "type" will set the exit code to 0 if the "rvm" exists either as keyword, function, builtin, or file.
2) In function fish
prompt I had to use "if test -n (gitbranchname)" and "if test -n (unpushed)" to make it work in my case

But again thanks for posting this is saved my hours!

Achievements
29 Karma
0 Total ProTip Views
Interests & Skills