From 699ab8c30b7108e7b020b4ef00f5920a057e2c89 Mon Sep 17 00:00:00 2001 From: Candifloss Date: Tue, 21 Jul 2026 21:16:05 +0530 Subject: [PATCH] Update theme Minimaline --- themes/compact/prompt.fish | 4 +++- themes/compact/right_prompt.fish | 4 +++- themes/minimaline/prompt.fish | 36 ++++++++++++++++++-------------- 3 files changed, 26 insertions(+), 18 deletions(-) diff --git a/themes/compact/prompt.fish b/themes/compact/prompt.fish index 1742c08..fc6a9a0 100644 --- a/themes/compact/prompt.fish +++ b/themes/compact/prompt.fish @@ -1,6 +1,8 @@ # Compact Theme # Author: Candifloss https://candifloss.cc -# Dependency: https://git.candifloss.cc/candifloss/PrettyPrompt +# Dependencies: +# 1. Prettyprompt: https://git.candifloss.cc/candifloss/PrettyPrompt +# 2. Nerdfonts: https://www.nerdfonts.com/ # Left prompt: Minimal prompt with color indicators function fish_prompt diff --git a/themes/compact/right_prompt.fish b/themes/compact/right_prompt.fish index 09d1c8d..a7a0a1a 100644 --- a/themes/compact/right_prompt.fish +++ b/themes/compact/right_prompt.fish @@ -1,6 +1,8 @@ # Compact Theme # Author: Candifloss https://candifloss.cc -# Dependency: https://git.candifloss.cc/candifloss/PrettyPrompt +# Dependencies: +# 1. Prettyprompt: https://git.candifloss.cc/candifloss/PrettyPrompt +# 2. Nerdfonts: https://www.nerdfonts.com/ # Right prompt: pwd and git function fish_right_prompt diff --git a/themes/minimaline/prompt.fish b/themes/minimaline/prompt.fish index 41e353f..c4957bb 100644 --- a/themes/minimaline/prompt.fish +++ b/themes/minimaline/prompt.fish @@ -1,53 +1,57 @@ # Minimaline theme # A minimal Powerline-style prompt # Author: Candifloss https://candifloss.cc -# Dependency: https://git.candifloss.cc/candifloss/PrettyPrompt +# Dependencies: +# 1. Prettyprompt: https://git.candifloss.cc/candifloss/PrettyPrompt +# 2. Nerdfonts: https://www.nerdfonts.com/ function fish_prompt set -l exit_status $status - # 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 + # color palette + set -l color_user_bg 4cc954 + set -l color_root_bg a89a64 + set -l color_pwd_bg 171717 + set -l color_status_bg 272727 + set -l color_host_bg 4cc992 + set -l color_error_bg d64444 - # Set status colour (override if error) + # Set status color (override if error) if test $exit_status -ne 0 - set colour_status_bg $colour_error_bg + set color_status_bg $color_error_bg end # Prompt symbol for root user set -l prompt_symbol '$' if fish_is_root_user set prompt_symbol '#' + set color_user_bg $color_root_bg end # --- Segment 1: User@Host --- # User part - set_color --background $colour_user_bg --bold $colour_pwd_bg + set_color --background $color_user_bg --bold $color_pwd_bg printf " %s" "$USER" # Host part set_color normal - set_color --background $colour_host_bg $colour_pwd_bg + set_color --background $color_host_bg $color_pwd_bg printf "@%s " (prompt_hostname) # Separator after Segment 1 - set_color --background $colour_pwd_bg $colour_host_bg + set_color --background $color_pwd_bg $color_host_bg printf " " # --- Segment 2: Current Directory --- - # prettyprompt-pwd handles its own foreground colour + # prettyprompt-pwd handles its own foreground color prettyprompt-pwd # --- End separators --- - set_color --background $colour_pwd_bg + set_color --background $color_pwd_bg printf " " - set_color --background $colour_status_bg $colour_pwd_bg + set_color --background $color_status_bg $color_pwd_bg printf "" - set_color --background normal $colour_status_bg + set_color --background normal $color_status_bg printf "" # Reset and add trailing space