Guest User

Fish shell

a guest
Nov 6th, 2017
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.30 KB | None | 0 0
  1. function fish_prompt
  2.     test $SSH_TTY; and printf (set_color red)(whoami)(set_color white)'@'(set_color yellow)(hostname)' '
  3.  
  4.     test $USER = 'root'; and echo (set_color red)"#"
  5.  
  6.     # Main
  7.     echo -n (set_color cyan)(prompt_pwd) (set_color red)'❯'(set_color yellow)'❯'(set_color green)'❯ '
  8. end
Advertisement
Add Comment
Please, Sign In to add comment