config/fish/functions/fish_prompt.fish (view raw)
1function fish_prompt --description 'Write out the prompt'
2 set -l cyan (set_color cyan)
3 set -l prefix '$'
4
5 printf '\n'
6 set_color cyan
7 printf '%s' (prompt_pwd)
8 set_color normal
9 printf '%s\n' (__fish_git_prompt)(__fish_git_prompt_dirty)
10 set_color white
11 printf '%s ' $prefix
12 set_color normal
13 end