2012-09-06 08:30:26 +00:00
|
|
|
# name: Simple Pythonista
|
|
|
|
# author: davbo
|
|
|
|
|
|
|
|
|
|
|
|
function fish_prompt
|
2016-11-02 02:19:45 +00:00
|
|
|
if not set -q VIRTUAL_ENV_DISABLE_PROMPT
|
|
|
|
set -g VIRTUAL_ENV_DISABLE_PROMPT true
|
|
|
|
end
|
|
|
|
set_color yellow
|
|
|
|
printf '%s' (whoami)
|
|
|
|
set_color normal
|
|
|
|
printf ' at '
|
2012-09-06 08:30:26 +00:00
|
|
|
|
2016-11-02 02:19:45 +00:00
|
|
|
set_color magenta
|
|
|
|
echo -n (prompt_hostname)
|
|
|
|
set_color normal
|
|
|
|
printf ' in '
|
2012-09-06 08:30:26 +00:00
|
|
|
|
2016-11-02 02:19:45 +00:00
|
|
|
set_color $fish_color_cwd
|
|
|
|
printf '%s' (prompt_pwd)
|
|
|
|
set_color normal
|
2012-09-06 08:30:26 +00:00
|
|
|
|
2016-11-02 02:19:45 +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
|
2012-09-06 08:30:26 +00:00
|
|
|
end
|