mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 10:06:49 +08:00
Remove obsolete optimization in default binding initialization
This special case was added in fb2ed355e
(Improve fork reporting Save a
couple of forks during init, 2012-04-24) but the reason for it is gone.
This commit is contained in:
parent
dea7841611
commit
aca8058717
|
@ -180,12 +180,8 @@ end" >$__fish_config_dir/config.fish
|
||||||
end
|
end
|
||||||
set -g __fish_active_key_bindings "$fish_key_bindings"
|
set -g __fish_active_key_bindings "$fish_key_bindings"
|
||||||
set -g fish_bind_mode default
|
set -g fish_bind_mode default
|
||||||
if test "$fish_key_bindings" = fish_default_key_bindings
|
# Redirect stderr per #1155
|
||||||
# Redirect stderr per #1155
|
$fish_key_bindings 2>/dev/null
|
||||||
fish_default_key_bindings 2>/dev/null
|
|
||||||
else
|
|
||||||
$fish_key_bindings 2>/dev/null
|
|
||||||
end
|
|
||||||
# Load user key bindings if they are defined
|
# Load user key bindings if they are defined
|
||||||
if functions --query fish_user_key_bindings >/dev/null
|
if functions --query fish_user_key_bindings >/dev/null
|
||||||
fish_user_key_bindings 2>/dev/null
|
fish_user_key_bindings 2>/dev/null
|
||||||
|
|
Loading…
Reference in New Issue
Block a user