From 3afc95ee3d949b39a9d39791f7d2ebd462bd13a2 Mon Sep 17 00:00:00 2001 From: Candifloss Date: Thu, 16 Jul 2026 22:24:04 +0530 Subject: [PATCH] Update Minimaline theme --- themes/compact/prompt.fish | 1 + themes/compact/right_prompt.fish | 1 + themes/default/prompt.fish | 1 + themes/minimaline/prompt.fish | 45 ++++++++++++++++++-------------- 4 files changed, 29 insertions(+), 19 deletions(-) diff --git a/themes/compact/prompt.fish b/themes/compact/prompt.fish index 0b02400..1742c08 100644 --- a/themes/compact/prompt.fish +++ b/themes/compact/prompt.fish @@ -1,4 +1,5 @@ # Compact Theme +# Author: Candifloss https://candifloss.cc # Dependency: https://git.candifloss.cc/candifloss/PrettyPrompt # Left prompt: Minimal prompt with color indicators diff --git a/themes/compact/right_prompt.fish b/themes/compact/right_prompt.fish index e7fd67e..09d1c8d 100644 --- a/themes/compact/right_prompt.fish +++ b/themes/compact/right_prompt.fish @@ -1,4 +1,5 @@ # Compact Theme +# Author: Candifloss https://candifloss.cc # Dependency: https://git.candifloss.cc/candifloss/PrettyPrompt # Right prompt: pwd and git diff --git a/themes/default/prompt.fish b/themes/default/prompt.fish index 04f279a..ba9cd28 100644 --- a/themes/default/prompt.fish +++ b/themes/default/prompt.fish @@ -1,5 +1,6 @@ # Default theme # Shell prompt: Left side +# Author: Candifloss https://candifloss.cc function fish_prompt set -l exit_status $status diff --git a/themes/minimaline/prompt.fish b/themes/minimaline/prompt.fish index 73b376c..41e353f 100644 --- a/themes/minimaline/prompt.fish +++ b/themes/minimaline/prompt.fish @@ -1,46 +1,53 @@ # Minimaline theme # A minimal Powerline-style prompt +# Author: Candifloss https://candifloss.cc # Dependency: https://git.candifloss.cc/candifloss/PrettyPrompt function fish_prompt set -l exit_status $status - # Colours - set -l bg1 44bfaa - set -l fg1 232323 - set -l bg2 171717 - set -l bg3 272727 + # Colour palette + set -l colour_user_bg 4cc954 + set -l colour_pwd_bg 171717 + set -l colour_status_bg 272727 + set -l colour_host_bg 4cc992 + set -l colour_error_bg d64444 - # Set status colour + # Set status colour (override if error) if test $exit_status -ne 0 - set bg3 d64444 + set colour_status_bg $colour_error_bg end - # Prompt symbol + # Prompt symbol for root user set -l prompt_symbol '$' if fish_is_root_user set prompt_symbol '#' end - # Segment 1: User@Host - set_color --background $bg1 --bold $fg1 - printf " %s@%s " "$USER" (prompt_hostname) + # --- Segment 1: User@Host --- + # User part + set_color --background $colour_user_bg --bold $colour_pwd_bg + printf " %s" "$USER" - # Separator 1 - set_color --background $bg2 $bg1 - #set_color $bg1 + # Host part + set_color normal + set_color --background $colour_host_bg $colour_pwd_bg + printf "@%s " (prompt_hostname) + + # Separator after Segment 1 + set_color --background $colour_pwd_bg $colour_host_bg printf " " - # Segment 2: Current directory + # --- Segment 2: Current Directory --- # prettyprompt-pwd handles its own foreground colour prettyprompt-pwd - # End separators - set_color --background $bg2 + # --- End separators --- + set_color --background $colour_pwd_bg printf " " - set_color --background $bg3 $bg2 + set_color --background $colour_status_bg $colour_pwd_bg printf "" - set_color --background normal $bg3 + set_color --background normal $colour_status_bg printf "" # Reset and add trailing space