Introduce themes

This commit is contained in:
Candifloss 2026-07-16 07:27:21 +05:30
parent 30659fa429
commit 434bdce987
5 changed files with 22 additions and 3 deletions

View File

@ -0,0 +1,12 @@
# Prompt theme
# Change "default" to preferred theme name
set -g FISH_PROMPT_THEME default
set -l theme_dir ~/.config/fish/themes/$FISH_PROMPT_THEME
source $theme_dir/prompt.fish
if test -f $theme_dir/right_prompt.fish
source $theme_dir/right_prompt.fish
end

View File

@ -1,2 +0,0 @@
# Right-side prompt
# Empty for now

View File

@ -0,0 +1,3 @@
function fish_prompt
__fish_theme_prompt
end

View File

@ -0,0 +1,5 @@
function fish_right_prompt
if functions -q __fish_theme_right_prompt
__fish_theme_right_prompt
end
end

View File

@ -1,6 +1,7 @@
# Default theme
# Shell prompt: Left side
function fish_prompt
function __fish_theme_prompt
set -l exit_status $status
set -l prompt_symbol
set -l user_color