Better way to load prompt themes

This commit is contained in:
Candifloss 2026-07-16 21:43:27 +05:30
parent 41e8e0a49f
commit be4a5f8b15
4 changed files with 2 additions and 10 deletions

View File

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

View File

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

View File

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

View File

@ -2,7 +2,7 @@
# A minimal Powerline-style prompt # A minimal Powerline-style prompt
# Dependency: https://git.candifloss.cc/candifloss/PrettyPrompt # Dependency: https://git.candifloss.cc/candifloss/PrettyPrompt
function __fish_theme_prompt function fish_prompt
set -l exit_status $status set -l exit_status $status
# Colours # Colours