function to restore original fish colors

This commit is contained in:
Bruno Pinto 2013-08-07 09:33:10 -03:00
parent bcbc660a1e
commit 1f08915e14
2 changed files with 32 additions and 3 deletions

View 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

View File

@ -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