Skip to content

Instantly share code, notes, and snippets.

@DenBeke
Created February 15, 2016 11:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DenBeke/222a6ccc501b168f505d to your computer and use it in GitHub Desktop.
Save DenBeke/222a6ccc501b168f505d to your computer and use it in GitHub Desktop.
function fish_prompt --description 'Write out the prompt'
set -l last_status $status
if not set -q __fish_prompt_normal
set -g __fish_prompt_normal (set_color normal)
end
# PWD
set_color $fish_color_cwd
echo -n (prompt_pwd)
set_color normal
printf '%s ' (__fish_git_prompt)
if not test $last_status -eq 0
set_color $fish_color_error
end
echo -n '$ '
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment