Skip to content

error after installed vcprompt #2363

Closed
Closed

Description

@jy03189211

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

in command substitution
called on standard input

Activity

  1. faho commented on Sep 6, 2015

    @faho
    Member

    I believe this is now fixed in cb5511c, if not, please comment.

    Thanks for reporting this!

  2. added this to the milestone on Sep 6, 2015
  3. added
    bug
    on Sep 6, 2015
  4. added a commit that references this issue on Sep 8, 2015
    f94affa
  5. ferologics commented on Jan 13, 2016

    @ferologics

    I'm having the same issue, what should I do?

    fish: Unknown command 'hg'
    /usr/local/share/fish/functions/__fish_hg_prompt.fish (line 1): hg branch ^/dev/null
                                                                    ^
    in command substitution
        called on line 22 of file /usr/local/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
    
    in command substitution
        called on standard input
    }
  6. faho commented on Jan 13, 2016

    @faho
    Member

    @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.

  7. ferologics commented on Jan 13, 2016

    @ferologics

    What about brew fish? @faho

  8. faho commented on Jan 13, 2016

    @faho
    Member

    @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.

  9. locked as resolved and limited conversation to collaborators on Apr 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions