Created
June 30, 2015 21:39
-
-
Save danielb2/fb0c20ef14a1d9310bbf to your computer and use it in GitHub Desktop.
fish config
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 | |
set_color blue | |
echo -n [ | |
set_color cyan | |
echo -n (whoami) | |
set_color 3FF | |
echo -n @ | |
set_color cyan | |
echo -n (hostname|cut -d . -f 1) | |
set_color blue | |
echo -n ']--(' | |
set_color cyan | |
echo -n (date +%T) | |
set_color blue | |
echo ')' | |
set_color blue | |
echo -n [ | |
set_color cyan | |
echo -n (prompt_pwd) | |
set_color blue | |
echo -n ] | |
set_color green | |
switch (id -u) | |
case 0; set prompt_symbol '#' | |
case '*'; set prompt_symbol '$' | |
end | |
echo -n "$prompt_symbol " | |
set_color normal | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment