fisher/functions/__fisher_key_bindings_undo.fish
Jorge Bucaran 3308240929
Make __fisher_key_bindings_undo smarter. Close #121.
Until now key_bindings.fish only allowed simple bind <args>
staments and would fail for conditional statements, etc.
2016-02-25 10:08:48 +09:00

4 lines
116 B
Fish

function __fisher_key_bindings_undo -a plugin
sed -n "/##$plugin##/,/##$plugin##/{s/^ *bind /bind -e /p;};"
end