Improve fork reporting

Save a couple of forks during init
This commit is contained in:
ridiculousfish
2012-04-24 10:10:43 -07:00
parent 675106cfa5
commit fb2ed355ec
2 changed files with 10 additions and 5 deletions

View File

@@ -207,7 +207,12 @@ function __fish_config_interactive -d "Initializations that should be performed
# Reload keybindings when binding variable change
function __fish_reload_key_bindings -d "Reload keybindings when binding variable change" --on-variable fish_key_bindings
eval $fish_key_bindings ^/dev/null
# Do something nasty to avoid two forks
if test "$fish_key_bindings" = fish_default_key_bindings
fish_default_key_bindings
else
eval $fish_key_bindings ^/dev/null
end
end
# Load keybindings