55 lines
875 B
Fish

# Minimaline theme
# Low budget Powerline style prompt
function __fish_theme_prompt
set -l exit_status $status
# Colours
set -l bg1 2ca2dd
set -l fg1 ffffff
set -l bg2 303030
# Prompt symbol
set -l prompt_symbol '$'
if fish_is_root_user
set prompt_symbol '#'
end
#
# Segment 1
#
set_color --background $bg1 $fg1
printf " %s@%s " "$USER" (prompt_hostname)
#
# Separator
#
set_color --background $bg2 $bg1
printf ""
#
# Segment 2
#
# prettyprompt-pwd handles its own foreground colour.
# We only provide the background.
set_color --background $bg2
printf " "
prettyprompt-pwd
printf " "
#
# End separator
#
set_color --background normal $bg2
printf " "
#
# Reset terminal colours
#
set_color normal
end