mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-11 15:37:24 +00:00
Load fish_user_key_bindings for any binding (including vi)
fish_user_key_bindings is the user's, and they should know if they want vi-ish bindings or emacs-ish (or nano-ish). If they want to define multiple, they can also do that (e.g. via checking what $fish_key_bindings is set to). Fixes #2254 CC @kballard
This commit is contained in:
parent
a21e44c155
commit
5f080fcfc9
1 changed files with 4 additions and 4 deletions
|
@ -169,13 +169,13 @@ function __fish_config_interactive -d "Initializations that should be performed
|
|||
set -g fish_bind_mode default
|
||||
if test "$fish_key_bindings" = fish_default_key_bindings
|
||||
fish_default_key_bindings
|
||||
# Load user key bindings if they are defined
|
||||
if functions --query fish_user_key_bindings > /dev/null
|
||||
fish_user_key_bindings
|
||||
end
|
||||
else
|
||||
eval $fish_key_bindings ^/dev/null
|
||||
end
|
||||
# Load user key bindings if they are defined
|
||||
if functions --query fish_user_key_bindings > /dev/null
|
||||
fish_user_key_bindings
|
||||
end
|
||||
end
|
||||
|
||||
# Load key bindings. Redirect stderr per #1155
|
||||
|
|
Loading…
Reference in a new issue