mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-11-25 16:06:32 +00:00
Set fish colorscheme to solarized if using it
This commit is contained in:
parent
f4e6e6ccfb
commit
ddabb854f5
57
assets/default/fish/functions/_set_colorscheme.fish
Normal file
57
assets/default/fish/functions/_set_colorscheme.fish
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
function _set_colorscheme --description "Sets the fish colorscheme"
|
||||||
|
set -l theme "$argv[1]"
|
||||||
|
switch "$theme"
|
||||||
|
case "solarized light"
|
||||||
|
set -g fish_color_autosuggestion 93a1a1
|
||||||
|
set -g fish_color_cancel -r
|
||||||
|
set -g fish_color_command 586e75
|
||||||
|
set -g fish_color_comment 93a1a1
|
||||||
|
set -g fish_color_cwd green
|
||||||
|
set -g fish_color_cwd_root red
|
||||||
|
set -g fish_color_end 268bd2
|
||||||
|
set -g fish_color_error dc322f
|
||||||
|
set -g fish_color_escape 00a6b2
|
||||||
|
set -g fish_color_history_current --bold
|
||||||
|
set -g fish_color_host normal
|
||||||
|
set -g fish_color_match --background=brblue
|
||||||
|
set -g fish_color_normal normal
|
||||||
|
set -g fish_color_operator 00a6b2
|
||||||
|
set -g fish_color_param 657b83
|
||||||
|
set -g fish_color_quote 839496
|
||||||
|
set -g fish_color_redirection 6c71c4
|
||||||
|
set -g fish_color_search_match bryellow --background=white
|
||||||
|
set -g fish_color_selection white --bold --background=brblack
|
||||||
|
set -g fish_color_user brgreen
|
||||||
|
set -g fish_color_valid_path --underline
|
||||||
|
set -g fish_pager_color_completion green
|
||||||
|
set -g fish_pager_color_description B3A06D
|
||||||
|
set -g fish_pager_color_prefix cyan --underline
|
||||||
|
set -g fish_pager_color_progress brwhite --background=cyan
|
||||||
|
case "solarized dark"
|
||||||
|
set -g fish_color_autosuggestion 586e75
|
||||||
|
set -g fish_color_cancel -r
|
||||||
|
set -g fish_color_command 93a1a1
|
||||||
|
set -g fish_color_comment 586e75
|
||||||
|
set -g fish_color_cwd green
|
||||||
|
set -g fish_color_cwd_root red
|
||||||
|
set -g fish_color_end 268bd2
|
||||||
|
set -g fish_color_error dc322f
|
||||||
|
set -g fish_color_escape 00a6b2
|
||||||
|
set -g fish_color_history_current --bold
|
||||||
|
set -g fish_color_host normal
|
||||||
|
set -g fish_color_match --background=brblue
|
||||||
|
set -g fish_color_normal normal
|
||||||
|
set -g fish_color_operator 00a6b2
|
||||||
|
set -g fish_color_param 839496
|
||||||
|
set -g fish_color_quote 657b83
|
||||||
|
set -g fish_color_redirection 6c71c4
|
||||||
|
set -g fish_color_search_match bryellow --background=black
|
||||||
|
set -g fish_color_selection white --bold --background=brblack
|
||||||
|
set -g fish_color_user brgreen
|
||||||
|
set -g fish_color_valid_path --underline
|
||||||
|
set -g fish_pager_color_completion B3A06D
|
||||||
|
set -g fish_pager_color_description B3A06D
|
||||||
|
set -g fish_pager_color_prefix cyan --underline
|
||||||
|
set -g fish_pager_color_progress brwhite --background=cyan
|
||||||
|
end
|
||||||
|
end
|
@ -26,4 +26,7 @@ if status --is-interactive
|
|||||||
|
|
||||||
# Export colors
|
# Export colors
|
||||||
eval ($HOME/bin/derive_colors.py --export --fish)
|
eval ($HOME/bin/derive_colors.py --export --fish)
|
||||||
|
if [ "$VIM_COLOR" = "solarized" ]
|
||||||
|
_set_colorscheme "solarized light"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user