Created
November 27, 2016 00:48
-
-
Save antespi/114e2513d4efa9bb61872f710a80a9f6 to your computer and use it in GitHub Desktop.
My fish prompt
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 | |
set -l fish_custom_color_user purple | |
set -l fish_custom_color_host red | |
set -l fish_custom_color_normal yellow | |
set -l fish_custom_color_cwd yellow | |
# User | |
set_color $fish_custom_color_user | |
echo -n (whoami) | |
set_color $fish_custom_color_normal | |
echo -n '@' | |
# Host | |
set_color $fish_custom_color_host | |
echo -n (hostname -s) | |
set_color normal | |
echo -n ' ' | |
# PWD | |
set_color $fish_custom_color_cwd | |
echo -n (prompt_pwd) | |
set_color normal | |
__terlar_git_prompt | |
# __fish_hg_prompt | |
echo | |
if not test $last_status -eq 0 | |
set_color $fish_color_error | |
end | |
echo -n '$ ' | |
set_color normal | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment