Commit fcc9d4dc authored by Derek Willian Stavis's avatar Derek Willian Stavis Committed by GitHub

key bindings: test if reload function is available (#368)

This fixes a rare case when fish's builtin function
__fish_reload_key_bindings is not defined.
parent 8aa8acb0
......@@ -30,8 +30,9 @@ function omf.theme.set -a target_theme
end
end
# If key bindings file found, reload fish key bindings
test (count {$OMF_CONFIG,$OMF_PATH}/key_binding?.fish) -gt 0
# Reload fish key bindings if reload is available and needed
functions -q __fish_reload_key_bindings
and test (count {$OMF_CONFIG,$OMF_PATH}/key_binding?.fish) -gt 0
and __fish_reload_key_bindings
# Persist the changes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment