Created
September 20, 2015 13:05
-
-
Save damiankloip/00c2a9c7484c0144034d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
#USER/HOST | |
printf '%s@%s ' $USER (hostname -s) | |
# 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