mirror of https://github.com/mitchell/dotfiles.git
Refactor how universal fish variables are set
This commit is contained in:
parent
d91e7a7abb
commit
5e8e764238
|
@ -1,31 +0,0 @@
|
||||||
# This file contains fish universal variable definitions.
|
|
||||||
# VERSION: 3.0
|
|
||||||
SETUVAR fish_color_autosuggestion:586e75
|
|
||||||
SETUVAR fish_color_cancel:\x2dr
|
|
||||||
SETUVAR fish_color_command:93a1a1
|
|
||||||
SETUVAR fish_color_comment:586e75
|
|
||||||
SETUVAR fish_color_cwd:green
|
|
||||||
SETUVAR fish_color_cwd_root:red
|
|
||||||
SETUVAR fish_color_end:268bd2
|
|
||||||
SETUVAR fish_color_error:dc322f
|
|
||||||
SETUVAR fish_color_escape:00a6b2
|
|
||||||
SETUVAR fish_color_history_current:\x2d\x2dbold
|
|
||||||
SETUVAR fish_color_host:normal
|
|
||||||
SETUVAR fish_color_host_remote:yellow
|
|
||||||
SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue
|
|
||||||
SETUVAR fish_color_normal:normal
|
|
||||||
SETUVAR fish_color_operator:00a6b2
|
|
||||||
SETUVAR fish_color_param:839496
|
|
||||||
SETUVAR fish_color_quote:657b83
|
|
||||||
SETUVAR fish_color_redirection:6c71c4
|
|
||||||
SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dblack
|
|
||||||
SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
|
|
||||||
SETUVAR fish_color_status:red
|
|
||||||
SETUVAR fish_color_user:brgreen
|
|
||||||
SETUVAR fish_color_valid_path:\x2d\x2dunderline
|
|
||||||
SETUVAR fish_greeting:
|
|
||||||
SETUVAR fish_key_bindings:fish_vi_key_bindings
|
|
||||||
SETUVAR fish_pager_color_completion:B3A06D
|
|
||||||
SETUVAR fish_pager_color_description:B3A06D
|
|
||||||
SETUVAR fish_pager_color_prefix:cyan\x1e\x2d\x2dunderline
|
|
||||||
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
set -U fish_color_autosuggestion 586e75
|
||||||
|
set -U fish_color_cancel -r
|
||||||
|
set -U fish_color_command 93a1a1
|
||||||
|
set -U fish_color_comment 586e75
|
||||||
|
set -U fish_color_cwd green
|
||||||
|
set -U fish_color_cwd_root red
|
||||||
|
set -U fish_color_end 268bd2
|
||||||
|
set -U fish_color_error dc322f
|
||||||
|
set -U fish_color_escape 00a6b2
|
||||||
|
set -U fish_color_history_current --bold
|
||||||
|
set -U fish_color_host normal
|
||||||
|
set -U fish_color_host_remote yellow
|
||||||
|
set -U fish_color_match --background=brblue
|
||||||
|
set -U fish_color_normal normal
|
||||||
|
set -U fish_color_operator 00a6b2
|
||||||
|
set -U fish_color_param 839496
|
||||||
|
set -U fish_color_quote 657b83
|
||||||
|
set -U fish_color_redirection 6c71c4
|
||||||
|
set -U fish_color_search_match 'bryellow' '--background=black'
|
||||||
|
set -U fish_color_selection 'white' '--bold' '--background=brblack'
|
||||||
|
set -U fish_color_status red
|
||||||
|
set -U fish_color_user brgreen
|
||||||
|
set -U fish_color_valid_path --underline
|
||||||
|
set -U fish_greeting
|
||||||
|
set -U fish_key_bindings fish_vi_key_bindings
|
||||||
|
set -U fish_pager_color_completion B3A06D
|
||||||
|
set -U fish_pager_color_description B3A06D
|
||||||
|
set -U fish_pager_color_prefix 'cyan' '--underline'
|
||||||
|
set -U fish_pager_color_progress 'brwhite' '--background=cyan'
|
6
sync
6
sync
|
@ -20,6 +20,8 @@ function main
|
||||||
|
|
||||||
set_git_user
|
set_git_user
|
||||||
|
|
||||||
|
set_fish_universal_vars
|
||||||
|
|
||||||
clean_up_tmp_space $cwd $start_dir
|
clean_up_tmp_space $cwd $start_dir
|
||||||
|
|
||||||
echo -s \n 'Done syncing.'
|
echo -s \n 'Done syncing.'
|
||||||
|
@ -80,6 +82,10 @@ function set_git_user
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function set_fish_universal_vars
|
||||||
|
source ./fish_universal_vars.fish
|
||||||
|
end
|
||||||
|
|
||||||
function clean_up_tmp_space -a cwd start_dir
|
function clean_up_tmp_space -a cwd start_dir
|
||||||
if test ! "$cwd" = 'dotfiles'
|
if test ! "$cwd" = 'dotfiles'
|
||||||
cd ..
|
cd ..
|
||||||
|
|
Loading…
Reference in New Issue