Created
February 7, 2016 15:47
-
-
Save martijnbastiaan/4698b8aca7379835bd6e to your computer and use it in GitHub Desktop.
/home/martijn/.config/fish/functions/fish_prompt.fish
This file contains hidden or 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
# name: Terlar | |
# author: terlar - https://github.com/terlar | |
set -g fish_color_user magenta | |
set -g fish_color_host yellow | |
function fish_prompt --description 'Write out the prompt' | |
set -l last_status $status | |
# User | |
set_color $fish_color_user | |
echo -n (whoami) | |
set_color normal | |
echo -n '@' | |
# Host | |
set_color $fish_color_host | |
echo -n (hostname -s) | |
set_color normal | |
echo -n ':' | |
# PWD | |
set_color $fish_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