fish_prompt.fish 548 B

1234567891011121314151617181920212223242526
  1. function fish_prompt
  2. if not set -q VIRTUAL_ENV_DISABLE_PROMPT
  3. set -g VIRTUAL_ENV_DISABLE_PROMPT true
  4. end
  5. set_color yellow
  6. printf '%s' (whoami)
  7. set_color normal
  8. printf '@'
  9. set_color red
  10. echo -n jupyter-raspberry-pi3
  11. set_color normal
  12. printf ':'
  13. set_color $fish_color_cwd
  14. printf '%s' (prompt_pwd)
  15. set_color normal
  16. # Line 2
  17. echo
  18. if test $VIRTUAL_ENV
  19. printf "(%s) " (set_color blue)(basename $VIRTUAL_ENV)(set_color normal)
  20. end
  21. printf '> '
  22. set_color normal
  23. end