You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The shell prints errors as follows after I installed vcprompt
fish: Unknown command 'hg'
/usr/local/Cellar/fish/2.2.0/share/fish/functions/__fish_hg_prompt.fish (line 1): hg branch ^/dev/null
^
in command substitution
called on line 22 of file /usr/local/Cellar/fish/2.2.0/share/fish/functions/__fish_hg_prompt.fish
in function '__fish_hg_prompt'
called on line 24 of file ~/.config/fish/functions/fish_prompt.fish
in function 'fish_prompt'
called on standard input
fish: Unknown command'hg'
/usr/local/share/fish/functions/__fish_hg_prompt.fish (line 1): hg branch ^/dev/null
^incommand substitution
called on line 22 of file /usr/local/share/fish/functions/__fish_hg_prompt.fish
infunction'__fish_hg_prompt'
called on line 24 of file ~/.config/fish/functions/fish_prompt.fish
infunction'fish_prompt'
called on standard input
incommand substitution
called on standard input
}
@ferologics: Either apply f94affa manually (funced __fish_hg_prompt, edit it in and then funcsave __fish_hg_prompt) or update to git fish. Or change your fish_prompt to not call hg - if you're not using it, the function call is wasted anyway.
@ferologics: As some searching tells me (never used brew, last experience with OSX was about ten years ago), brew install --HEAD would update your fish to the current development version (git HEAD). Do keep in mind that it might break stuff (nothing I'm aware of, though) - changing the fish_prompt or __fish_hg_prompt functions is definitely the safer approach. Not that I'm against more testing.
Activity
faho commentedon Sep 6, 2015
I believe this is now fixed in cb5511c, if not, please comment.
Thanks for reporting this!
Vcs prompt: Break if vcs isn't installed
ferologics commentedon Jan 13, 2016
I'm having the same issue, what should I do?
faho commentedon Jan 13, 2016
@ferologics: Either apply f94affa manually (
funced __fish_hg_prompt, edit it in and thenfuncsave __fish_hg_prompt) or update to git fish. Or change your fish_prompt to not call hg - if you're not using it, the function call is wasted anyway.ferologics commentedon Jan 13, 2016
What about brew fish? @faho
faho commentedon Jan 13, 2016
@ferologics: As some searching tells me (never used brew, last experience with OSX was about ten years ago),
brew install --HEADwould update your fish to the current development version (git HEAD). Do keep in mind that it might break stuff (nothing I'm aware of, though) - changing the fish_prompt or __fish_hg_prompt functions is definitely the safer approach. Not that I'm against more testing.