From b479be406522cf4718bdba45a0c0a4c095552787 Mon Sep 17 00:00:00 2001 From: Candifloss Date: Thu, 16 Jul 2026 08:13:42 +0530 Subject: [PATCH] Start Minimaline theme --- conf.d/25_prompt_theme.fish | 1 + themes/minimaline/prompt.fish | 55 +++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 themes/minimaline/prompt.fish diff --git a/conf.d/25_prompt_theme.fish b/conf.d/25_prompt_theme.fish index 3dd11fa..f1eec53 100644 --- a/conf.d/25_prompt_theme.fish +++ b/conf.d/25_prompt_theme.fish @@ -3,6 +3,7 @@ # Change "default" to preferred theme name set -g FISH_PROMPT_THEME default #set -g FISH_PROMPT_THEME compact +#set -g FISH_PROMPT_THEME minimaline set -l theme_dir ~/.config/fish/themes/$FISH_PROMPT_THEME diff --git a/themes/minimaline/prompt.fish b/themes/minimaline/prompt.fish new file mode 100644 index 0000000..7746969 --- /dev/null +++ b/themes/minimaline/prompt.fish @@ -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 \ No newline at end of file