mirror of https://github.com/jorgebucaran/fisher
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
494 B
Fish
17 lines
494 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
|
|
|
|
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
|
|
rm -f $user_key_bindings.tmp
|
|
end
|
|
end
|