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.
13 lines
440 B
Fish
13 lines
440 B
Fish
function __fisher_key_bindings_disable -a plugin user_key_bindings
|
|
fish_indent < $fisher_binds | __fisher_key_bindings_undo $plugin | source ^ /dev/null
|
|
|
|
__fisher_key_bindings_delete $plugin > $fisher_binds.tmp < $fisher_binds
|
|
|
|
command mv -f $fisher_binds.tmp $fisher_binds
|
|
|
|
if test ! -s $fisher_binds
|
|
sed -i.tmp '/__fisher_key_bindings/d' $user_key_bindings
|
|
command rm -f $user_key_bindings.tmp
|
|
end
|
|
end
|