Update theme Minimaline

This commit is contained in:
Candifloss 2026-07-21 21:16:05 +05:30
parent e5edc67493
commit 699ab8c30b
3 changed files with 26 additions and 18 deletions

View File

@ -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

View File

@ -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

View File

@ -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