From 6b08ad2608d87795150d85029b997a6367650cf1 Mon Sep 17 00:00:00 2001 From: candifloss Date: Thu, 16 Jul 2026 15:04:50 +0530 Subject: [PATCH] Working Minimaline theme --- .gitignore | 1 + conf.d/15_history.fish | 2 -- themes/minimaline/prompt.fish | 62 ++++++++++++++++------------------- 3 files changed, 29 insertions(+), 36 deletions(-) diff --git a/.gitignore b/.gitignore index 23efee9..6c21669 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ fish_variables +test/ \ No newline at end of file diff --git a/conf.d/15_history.fish b/conf.d/15_history.fish index 985cb8c..2ab90e6 100644 --- a/conf.d/15_history.fish +++ b/conf.d/15_history.fish @@ -1,7 +1,5 @@ # History -# Save immediately. -set -g fish_history default # Keep a large history. set -g fish_history_max 100000 \ No newline at end of file diff --git a/themes/minimaline/prompt.fish b/themes/minimaline/prompt.fish index 7746969..b95b135 100644 --- a/themes/minimaline/prompt.fish +++ b/themes/minimaline/prompt.fish @@ -1,13 +1,20 @@ # Minimaline theme -# Low budget Powerline style prompt +# A minimal Powerline-style prompt +# Dependency: https://git.candifloss.cc/candifloss/PrettyPrompt function __fish_theme_prompt set -l exit_status $status # Colours - set -l bg1 2ca2dd - set -l fg1 ffffff - set -l bg2 303030 + set -l bg1 44bfaa + set -l fg1 232323 + set -l bg2 171717 + set -l bg3 272727 + + # Set status colour + if test $exit_status -ne 0 + set bg3 d64444 + end # Prompt symbol set -l prompt_symbol '$' @@ -15,41 +22,28 @@ function __fish_theme_prompt set prompt_symbol '#' end - # - # Segment 1 - # - - set_color --background $bg1 $fg1 + # Segment 1: User@Host + set_color --background $bg1 --bold $fg1 printf " %s@%s " "$USER" (prompt_hostname) - # - # Separator - # - + # Separator 1 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 + #set_color $bg1 printf " " - # - # Reset terminal colours - # + # Segment 2: Current directory + # prettyprompt-pwd handles its own foreground colour + prettyprompt-pwd + # End separators + set_color --background $bg2 + printf " " + set_color --background $bg3 $bg2 + printf "" + set_color --background normal $bg3 + printf "" + + # Reset and add trailing space set_color normal + printf " " end \ No newline at end of file