Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. function fish_prompt
  2. set -l pwd_info (pwd_info "/")
  3.  
  4. echo
  5. set_color yellow
  6.  
  7. if pwd_is_home
  8. echo -n " ~/"
  9. else
  10. echo -n " /"
  11. end
  12.  
  13. if test ! -z "$pwd_info[2]"
  14. echo -n "$pwd_info[2]/"
  15. end
  16.  
  17. if test ! -z "$pwd_info[1]"
  18. echo -n "$pwd_info[1]"
  19. end
  20.  
  21. echo
  22. set_color normal
  23.  
  24. echo "% "
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement