Skip to content

Instantly share code, notes, and snippets.

@danielb2
Created June 30, 2015 21:39
Show Gist options
  • Save danielb2/fb0c20ef14a1d9310bbf to your computer and use it in GitHub Desktop.
Save danielb2/fb0c20ef14a1d9310bbf to your computer and use it in GitHub Desktop.
fish config
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