mirror of
https://github.com/jorgebucaran/fisher
synced 2024-11-09 07:10:27 +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
17 lines
510 B
Fish
17 lines
510 B
Fish
function __fisher_key_bindings_disable -a plugin user_key_bindings
|
|
fish_indent < $fisher_key_bindings \
|
|
| __fisher_key_bindings_undo $plugin \
|
|
| source
|
|
|
|
__fisher_key_bindings_delete $plugin \
|
|
> $fisher_key_bindings.tmp \
|
|
< $fisher_key_bindings
|
|
|
|
command mv -f $fisher_key_bindings.tmp $fisher_key_bindings
|
|
|
|
if test ! -s $fisher_key_bindings
|
|
sed -i.tmp '/__fisher_key_bindings/d' $user_key_bindings
|
|
command rm -f $user_key_bindings.tmp
|
|
end
|
|
end
|