mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-09 13:10:40 +00:00
function to restore original fish colors
This commit is contained in:
parent
bcbc660a1e
commit
1f08915e14
29
functions/restore_original_fish_colors.fish
Normal file
29
functions/restore_original_fish_colors.fish
Normal file
@ -0,0 +1,29 @@
|
||||
function restore_original_fish_colors
|
||||
# Regular syntax highlighting colors
|
||||
set fish_color_normal normal
|
||||
set fish_color_command 005fd7 purple
|
||||
set fish_color_param 00afff cyan
|
||||
set fish_color_redirection normal
|
||||
set fish_color_comment red
|
||||
set fish_color_error red --bold
|
||||
set fish_color_escape cyan
|
||||
set fish_color_operator cyan
|
||||
set fish_color_quote brown
|
||||
set fish_color_autosuggestion 555 yellow
|
||||
set fish_color_valid_path --underline
|
||||
|
||||
set fish_color_cwd green
|
||||
set fish_color_cwd_root red
|
||||
|
||||
# Background color for matching quotes and parenthesis
|
||||
set fish_color_match cyan
|
||||
|
||||
# Background color for search matches
|
||||
set fish_color_search_match --background=purple
|
||||
|
||||
# Pager colors
|
||||
set fish_pager_color_prefix cyan
|
||||
set fish_pager_color_completion normal
|
||||
set fish_pager_color_description 555 yellow
|
||||
set fish_pager_color_progress cyan
|
||||
end
|
@ -41,7 +41,7 @@ function _fish_source_plugin_load_file
|
||||
end
|
||||
end
|
||||
|
||||
function _fish_configure_theme
|
||||
function _fish_load_theme
|
||||
if test -d $fish_path/themes/$fish_theme
|
||||
set fish_function_path $fish_path/themes/$fish_theme $fish_function_path
|
||||
end
|
||||
@ -75,8 +75,8 @@ for plugin in $fish_plugins
|
||||
_fish_source_plugin_load_file $plugin
|
||||
end
|
||||
|
||||
# Add user defined theme
|
||||
_fish_configure_theme $fish_theme
|
||||
# Load user defined theme
|
||||
_fish_load_theme $fish_theme
|
||||
|
||||
# Source all files inside custom folder
|
||||
for config_file in $fish_custom/*.load
|
||||
|
Loading…
Reference in New Issue
Block a user