Guest User

Untitled

a guest
Oct 22nd, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. set normal (set_color normal)
  2. set magenta (set_color magenta)
  3. set yellow (set_color yellow)
  4. set green (set_color green)
  5. set red (set_color red)
  6. set gray (set_color -o black)
  7.  
  8. # Fish git prompt
  9. set __fish_git_prompt_showdirtystate 'yes'
  10. set __fish_git_prompt_showstashstate 'yes'
  11. set __fish_git_prompt_showuntrackedfiles 'yes'
  12. set __fish_git_prompt_showupstream 'yes'
  13. set __fish_git_prompt_color_branch yellow
  14. set __fish_git_prompt_color_upstream_ahead green
  15. set __fish_git_prompt_color_upstream_behind red
  16.  
  17. # Status Chars
  18. set __fish_git_prompt_char_dirtystate '⚡'
  19. set __fish_git_prompt_char_stagedstate '→'
  20. set __fish_git_prompt_char_untrackedfiles '☡'
  21. set __fish_git_prompt_char_stashstate '↩'
  22. set __fish_git_prompt_char_upstream_ahead '+'
  23. set __fish_git_prompt_char_upstream_behind '-'
  24.  
  25.  
  26. function fish_prompt
  27. set last_status $status
  28.  
  29. set_color $fish_color_cwd
  30. printf '%s' (prompt_pwd)
  31. set_color normal
  32.  
  33. printf '%s ' (__fish_git_prompt)
  34.  
  35. set_color normal
  36. end
Add Comment
Please, Sign In to add comment