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