mirror of https://github.com/jorgebucaran/fisher
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.pull/445/head
parent
e1e49ceaff
commit
3308240929
@ -1,3 +1,3 @@
|
||||
function __fisher_key_bindings_undo -a plugin
|
||||
sed -n "/##$plugin##/,/##$plugin##/{s/bind /bind -e /p;};"
|
||||
sed -n "/##$plugin##/,/##$plugin##/{s/^ *bind /bind -e /p;};"
|
||||
end
|
||||
|
@ -1,6 +1,6 @@
|
||||
##foo##
|
||||
echo bind foo
|
||||
bind foo
|
||||
##foo##
|
||||
##bar##
|
||||
echo bind bar
|
||||
bind bar
|
||||
##bar##
|
||||
|
Loading…
Reference in New Issue