mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08:00
Commit __fish_config_interactive where I have it
Nuke the cool surprise deletion feature
This commit is contained in:
parent
92e3a3c8ef
commit
be0bd999ad
@ -37,16 +37,8 @@ function __fish_config_interactive -d "Initializations that should be performed
|
|||||||
#
|
#
|
||||||
# bump this to 2_4_0 when rolling release if anything changes after 9/10/2016
|
# bump this to 2_4_0 when rolling release if anything changes after 9/10/2016
|
||||||
if not set -q __fish_init_2_39_8
|
if not set -q __fish_init_2_39_8
|
||||||
set -l date (command date '+%Y-%m-%dT%H:%M:%S')
|
|
||||||
set -g colors_backup "$HOME/fish_previous_colors-$date.txt"
|
|
||||||
echo Backing up uvars to:\n (set_color --underline)$colors_backup(set_color normal)
|
|
||||||
set -U >>$colors_backup
|
|
||||||
for option in (set -Un | string match "fish*color_*")
|
|
||||||
set -eU $option
|
|
||||||
end
|
|
||||||
echo \"Normalized\" colors on upgrade.
|
|
||||||
|
|
||||||
# Regular syntax highlighting colors
|
# Regular syntax highlighting colors
|
||||||
|
# XXX - not quite the same as default colors in web config. Sync these up.
|
||||||
set -q fish_color_normal
|
set -q fish_color_normal
|
||||||
or set -U fish_color_normal normal
|
or set -U fish_color_normal normal
|
||||||
set -q fish_color_command
|
set -q fish_color_command
|
||||||
@ -60,7 +52,7 @@ function __fish_config_interactive -d "Initializations that should be performed
|
|||||||
set -q fish_color_error
|
set -q fish_color_error
|
||||||
or set -U fish_color_error brred
|
or set -U fish_color_error brred
|
||||||
set -q fish_color_escape
|
set -q fish_color_escape
|
||||||
or set -U fish_color_escape bryellow
|
or set -U fish_color_escape bryellow --bold
|
||||||
set -q fish_color_operator
|
set -q fish_color_operator
|
||||||
or set -U fish_color_operator bryellow
|
or set -U fish_color_operator bryellow
|
||||||
set -q fish_color_end
|
set -q fish_color_end
|
||||||
@ -84,21 +76,21 @@ function __fish_config_interactive -d "Initializations that should be performed
|
|||||||
|
|
||||||
# Background color for matching quotes and parenthesis
|
# Background color for matching quotes and parenthesis
|
||||||
set -q fish_color_match
|
set -q fish_color_match
|
||||||
or set -U fish_color_match --background=blue
|
or set -U fish_color_match --background=brblue
|
||||||
|
|
||||||
# Background color for search matches
|
# Background color for search matches
|
||||||
set -q fish_color_search_match
|
set -q fish_color_search_match
|
||||||
or set -U fish_color_search_match bryellow --background=brgrey
|
or set -U fish_color_search_match bryellow --background=brblack
|
||||||
|
|
||||||
# Background color for selections
|
# Background color for selections
|
||||||
set -q fish_color_selection
|
set -q fish_color_selection
|
||||||
or set -U fish_color_selection white --bold --background=brgrey
|
or set -U fish_color_selection white --bold --background=brblack
|
||||||
|
|
||||||
# Pager colors
|
# Pager colors
|
||||||
set -q fish_pager_color_prefix
|
set -q fish_pager_color_prefix
|
||||||
or set -U fish_pager_color_prefix white --bold --underline
|
or set -U fish_pager_color_prefix white --bold --underline
|
||||||
#set -q fish_pager_color_completion
|
set -q fish_pager_color_completion
|
||||||
#or set -U fish_pager_color_completion
|
or set -U fish_pager_color_completion
|
||||||
set -q fish_pager_color_description
|
set -q fish_pager_color_description
|
||||||
or set -U fish_pager_color_description B3A06D yellow
|
or set -U fish_pager_color_description B3A06D yellow
|
||||||
set -q fish_pager_color_progress
|
set -q fish_pager_color_progress
|
||||||
|
Loading…
x
Reference in New Issue
Block a user