Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (24 sloc) 722 Bytes
function fish_right_prompt
# We don't need this; we're pretty much always ourselves
#echo -n -s "$USER" @
# We don't need this; it's already in the title bar (see
# fish_title.fish)
#echo -n $__fish_prompt_hostname
set -l color_cwd
set -l suffix
switch $USER
case root toor
if set -q fish_color_cwd_root
set color_cwd $fish_color_cwd_root
else
set color_cwd $fish_color_cwd
end
case '*'
set color_cwd $fish_color_cwd
end
echo -n -s (set_color $color_cwd) (prompt_pwd) (set_color normal)
__show_only_git_branch
end
function __show_only_git_branch
__fish_git_prompt " %s"
end