Introduce themes
This commit is contained in:
parent
30659fa429
commit
434bdce987
12
conf.d/25_prompt_theme.fish
Normal file
12
conf.d/25_prompt_theme.fish
Normal 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
|
||||||
@ -1,2 +0,0 @@
|
|||||||
# Right-side prompt
|
|
||||||
# Empty for now
|
|
||||||
3
functions/fish_prompt.fish
Normal file
3
functions/fish_prompt.fish
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
function fish_prompt
|
||||||
|
__fish_theme_prompt
|
||||||
|
end
|
||||||
5
functions/fish_right_prompt.fish
Normal file
5
functions/fish_right_prompt.fish
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
function fish_right_prompt
|
||||||
|
if functions -q __fish_theme_right_prompt
|
||||||
|
__fish_theme_right_prompt
|
||||||
|
end
|
||||||
|
end
|
||||||
@ -1,6 +1,7 @@
|
|||||||
|
# Default theme
|
||||||
# Shell prompt: Left side
|
# Shell prompt: Left side
|
||||||
|
|
||||||
function fish_prompt
|
function __fish_theme_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
|
||||||
Loading…
x
Reference in New Issue
Block a user