Start Minimaline theme
This commit is contained in:
parent
a76ae89471
commit
b479be4065
@ -3,6 +3,7 @@
|
|||||||
# Change "default" to preferred theme name
|
# Change "default" to preferred theme name
|
||||||
set -g FISH_PROMPT_THEME default
|
set -g FISH_PROMPT_THEME default
|
||||||
#set -g FISH_PROMPT_THEME compact
|
#set -g FISH_PROMPT_THEME compact
|
||||||
|
#set -g FISH_PROMPT_THEME minimaline
|
||||||
|
|
||||||
set -l theme_dir ~/.config/fish/themes/$FISH_PROMPT_THEME
|
set -l theme_dir ~/.config/fish/themes/$FISH_PROMPT_THEME
|
||||||
|
|
||||||
|
|||||||
55
themes/minimaline/prompt.fish
Normal file
55
themes/minimaline/prompt.fish
Normal file
@ -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
|
||||||
Loading…
x
Reference in New Issue
Block a user