fix fish prompt coloring
This commit is contained in:
parent
36a800415b
commit
b39e324adb
4 changed files with 8 additions and 18 deletions
|
|
@ -3,21 +3,11 @@ function fish_prompt
|
|||
set -g VIRTUAL_ENV_DISABLE_PROMPT true
|
||||
end
|
||||
|
||||
set colorscheme (dconf read /org/gnome/desktop/interface/color-scheme)
|
||||
|
||||
if test $colorscheme = '\'prefer-light\''
|
||||
set_color brwhite --background d5c4a1
|
||||
else
|
||||
set_color brwhite --background 504945
|
||||
end
|
||||
set_color white --background=brwhite --dim --reverse
|
||||
set -g __fish_git_prompt_show_informative_status true
|
||||
printf '%s' (fish_git_prompt " %s ")
|
||||
|
||||
if test $colorscheme = '\'prefer-light\''
|
||||
set_color white --background ebdbb2
|
||||
else
|
||||
set_color white --background 3c3836
|
||||
end
|
||||
set_color black --background=white --dim --reverse
|
||||
printf ' %s ' (prompt_pwd -D 8)
|
||||
echo
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue