Commit 95243602 authored by Ulrich Schinz's avatar Ulrich Schinz
Browse files

some

parent 954624df
......@@ -22,6 +22,7 @@ function fish_prompt
set -l blue (set_color blue)
set -l green (set_color green)
set -l normal (set_color normal)
set -l brcyan (set_color brcyan)
set -l cwd $blue(pwd | sed "s:^$HOME:~:")
......@@ -50,12 +51,25 @@ function fish_prompt
echo -n -s ' · ' $git_info $normal
end
set time_stamp ' (' (date "+%H:%M:%S") ')'
if [ (_git_branch_name) ]
echo -n -s ' ·'
end
echo -n -s ' ' $cyan $time_stamp
set -l prompt_color $red
if test $last_status = 0
set prompt_color $normal
end
# Terminate with a nice prompt char
# Terminate with a nice prompt with user and char
echo -e ''
echo -e -n -s $prompt_color '⟩ ' $normal
if [ "$USER" != "$default_user" -o -n "$SSH_CLIENT" ]
echo -n -s $brcyan " " (whoami) " " $normal
if [ "$theme_display_hostname" = "yes" ]
echo -n -s $brcyan "on " (hostname -s) " " $normal
end
end
echo -e -n -s $prompt_color 'λ ' $normal
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment