Start Minimaline theme

This commit is contained in:
Candifloss 2026-07-16 08:13:42 +05:30
parent a76ae89471
commit b479be4065
2 changed files with 56 additions and 0 deletions

View File

@ -3,6 +3,7 @@
# Change "default" to preferred theme name # Change "default" to preferred theme name
set -g FISH_PROMPT_THEME default set -g FISH_PROMPT_THEME default
#set -g FISH_PROMPT_THEME compact #set -g FISH_PROMPT_THEME compact
#set -g FISH_PROMPT_THEME minimaline
set -l theme_dir ~/.config/fish/themes/$FISH_PROMPT_THEME set -l theme_dir ~/.config/fish/themes/$FISH_PROMPT_THEME

View File

@ -0,0 +1,55 @@
# 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