init: don't try to double backup key bindings

This commit is contained in:
Derek Stavis 2016-07-05 09:23:10 -03:00
parent f79cd11899
commit ac9b419825

View File

@ -23,6 +23,7 @@ require --path {$OMF_PATH,$OMF_CONFIG}/pkg/*
emit perf:timer:finish "Oh My Fish init installed packages"
# Backup key bindings
functions -q fish_user_key_bindings
and not functions -q __original_fish_user_key_bindings
and functions -c fish_user_key_bindings __original_fish_user_key_bindings
# Override key bindings, calling original if existent
function fish_user_key_bindings -V theme