Hacker News new | ask | show | jobs
by Osiris 4766 days ago
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