fish_right_prompt.fish 279 B

123456789101112
  1. # name: mtahmed
  2. # Left prompt:
  3. # - First 10 characters of hostname if ssh'ed
  4. # - Current directory name
  5. # - ─╼
  6. # Right prompt:
  7. # - Exit code of the previous command
  8. function fish_right_prompt
  9. set -l last_status $status
  10. set_color $fish_color_cwd
  11. printf $last_status
  12. end