mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-08 01:56:16 +08:00
Introduced fish_user_keybindings
This commit is contained in:
parent
ca61d0ee8b
commit
9f563f4873
|
@ -204,6 +204,10 @@ function __fish_config_interactive -d "Initializations that should be performed
|
||||||
# Do something nasty to avoid two forks
|
# Do something nasty to avoid two forks
|
||||||
if test "$fish_key_bindings" = fish_default_key_bindings
|
if test "$fish_key_bindings" = fish_default_key_bindings
|
||||||
fish_default_key_bindings
|
fish_default_key_bindings
|
||||||
|
#Load user keybindings if they are defined
|
||||||
|
if type fish_user_keybindings > /dev/null
|
||||||
|
fish_user_keybindings
|
||||||
|
end
|
||||||
else
|
else
|
||||||
eval $fish_key_bindings ^/dev/null
|
eval $fish_key_bindings ^/dev/null
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user