mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-22 13:11:00 +08:00
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.
This commit is contained in:
parent
8aa8acb027
commit
fcc9d4dc0a
|
@ -30,8 +30,9 @@ function omf.theme.set -a target_theme
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# If key bindings file found, reload fish key bindings
|
# Reload fish key bindings if reload is available and needed
|
||||||
test (count {$OMF_CONFIG,$OMF_PATH}/key_binding?.fish) -gt 0
|
functions -q __fish_reload_key_bindings
|
||||||
|
and test (count {$OMF_CONFIG,$OMF_PATH}/key_binding?.fish) -gt 0
|
||||||
and __fish_reload_key_bindings
|
and __fish_reload_key_bindings
|
||||||
|
|
||||||
# Persist the changes
|
# Persist the changes
|
||||||
|
|
Loading…
Reference in New Issue
Block a user