mirror of
https://github.com/jorgebucaran/fisher
synced 2024-11-01 21:40:18 +00:00
a11bbee41d
By using `command` we ensure that we always end up calling the external binary and don't get caught by user aliasses, functions or other magic. Closes #79
18 lines
527 B
Fish
18 lines
527 B
Fish
function __fisher_key_bindings_enable -a plugin user_key_bindings
|
|
__fisher_key_bindings_update $plugin >> $fisher_key_bindings
|
|
|
|
if test ! -s $user_key_bindings
|
|
command mkdir -p (dirname $user_key_bindings)
|
|
|
|
printf "%s\n" \
|
|
"function fish_user_key_bindings" \
|
|
" __fisher_key_bindings" \
|
|
"end" > $user_key_bindings
|
|
|
|
source $user_key_bindings
|
|
end
|
|
|
|
functions fish_user_key_bindings \
|
|
| __fisher_key_bindings_update_user > $user_key_bindings
|
|
end
|