Skip to content

Comment on How to Set Up Git Completion and Repo State on OS X

Comments

fish shell has some of this built in, such as the git prompt.

Here's a sample of my fish_prompt.fish

    function fish_prompt
      set last_status $status
    
      set_color $fish_color_cwd
      printf '%s' (prompt_pwd)
      set_color normal
    
      printf '%s ' (__fish_git_prompt)
    
      set_color normal
    end
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.