oh-my-fish/themes/jacaetevha/fish_prompt.fish

31 lines
582 B
Fish
Raw Normal View History

2013-06-05 16:42:51 +00:00
function fish_prompt
2013-06-05 16:50:11 +00:00
set -l script_dir (dirname (status -f))
2013-06-05 20:47:57 +00:00
. $script_dir/tbytes.fish
2013-06-05 20:34:49 +00:00
2013-06-05 16:50:11 +00:00
set_color yellow
printf '%s' (whoami)
set_color normal
printf ' at '
2013-06-05 16:42:51 +00:00
2013-06-05 16:50:11 +00:00
set_color magenta
printf '%s' (hostname|cut -d . -f 1)
set_color normal
printf ' in '
2013-06-05 16:42:51 +00:00
2013-06-05 16:50:11 +00:00
set_color $fish_color_cwd
printf '%s ' (prompt_pwd)
set_color blue
2013-06-05 20:34:49 +00:00
printf '%s' (tbytes)
2013-06-05 16:50:11 +00:00
set_color normal
printf '%s' (__fish_git_prompt)
2013-06-05 16:42:51 +00:00
2013-06-05 16:50:11 +00:00
# Line 2
echo
if test $VIRTUAL_ENV
printf "(%s) " (set_color blue)(basename $VIRTUAL_ENV)(set_color normal)
end
printf '↪ '
set_color normal
2013-06-05 16:42:51 +00:00
end