fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
867946468
master
1# name: Simple 2 3function fish_prompt 4# This is a simple prompt. It looks like 5# alfa@nobby /path/to/dir $ 6# with the path shortened and colored 7# and a "#" instead of a "$" when run as root. 8set -l symbol' $ ' 9set -l color$fish_color_cwd 10if fish_is_root_user 11set symbol' # ' 12set -q fish_color_cwd_root 13and set color$fish_color_cwd_root 14end 15 16echo -n$USER @$hostname 17 18set_color $color 19echo -n( prompt_pwd ) 20set_color --reset 21 22echo -n$symbol 23end