dotfiles/.config/fish/functions/fish_prompt.fish

24 lines
524 B
Fish
Raw Normal View History

2025-11-05 14:30:26 +01:00
function fish_prompt
2025-12-30 16:39:08 +01:00
if not set -q VIRTUAL_ENV_DISABLE_PROMPT
set -g VIRTUAL_ENV_DISABLE_PROMPT true
end
2025-12-30 16:27:17 +01:00
2025-12-30 16:39:08 +01:00
set_color brwhite
set_color --background 504945
set -g __fish_git_prompt_show_informative_status true
printf '%s' (fish_git_prompt " %s ")
2025-12-30 16:27:17 +01:00
2025-12-30 16:39:08 +01:00
set_color white
set_color --background 3c3836
printf ' %s ' (prompt_pwd -D 8)
2025-12-30 16:27:17 +01:00
2025-12-30 16:39:08 +01:00
echo
2025-12-30 16:27:17 +01:00
2025-12-30 16:39:08 +01:00
if test -n "$VIRTUAL_ENV"
printf "(%s) " (set_color blue)(path basename $VIRTUAL_ENV)(set_color normal)
end
set_color normal
echo
2025-09-06 23:01:45 +02:00
end