summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorSomeDer <48731521+SomeDer@users.noreply.github.com>2019-08-19 11:14:22 +0100
committerMarc Cornellà <marc.cornella@live.com>2019-08-19 12:14:22 +0200
commit97c0d0a563d2303adc64e94c78544bb4d2dbf83c (patch)
tree3f90d2308d1b9394fd12b4661c4da12e161400fd /plugins
parentc4c620adcd0dadf8f3f0d6aa331780291b5bdacd (diff)
downloadzsh-97c0d0a563d2303adc64e94c78544bb4d2dbf83c.tar.gz
zsh-97c0d0a563d2303adc64e94c78544bb4d2dbf83c.tar.bz2
zsh-97c0d0a563d2303adc64e94c78544bb4d2dbf83c.zip
Allow plugins sudo and thefuck to be loaded before vi-mode (#8087)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sudo/sudo.plugin.zsh4
-rw-r--r--plugins/thefuck/thefuck.plugin.zsh4
2 files changed, 6 insertions, 2 deletions
diff --git a/plugins/sudo/sudo.plugin.zsh b/plugins/sudo/sudo.plugin.zsh
index 0b843822e..f405b025f 100644
--- a/plugins/sudo/sudo.plugin.zsh
+++ b/plugins/sudo/sudo.plugin.zsh
@@ -28,4 +28,6 @@ sudo-command-line() {
}
zle -N sudo-command-line
# Defined shortcut keys: [Esc] [Esc]
-bindkey "\e\e" sudo-command-line
+bindkey -M emacs '\e\e' sudo-command-line
+bindkey -M vicmd '\e\e' sudo-command-line
+bindkey -M viins '\e\e' sudo-command-line
diff --git a/plugins/thefuck/thefuck.plugin.zsh b/plugins/thefuck/thefuck.plugin.zsh
index ac88e67de..b8586c70d 100644
--- a/plugins/thefuck/thefuck.plugin.zsh
+++ b/plugins/thefuck/thefuck.plugin.zsh
@@ -15,4 +15,6 @@ fuck-command-line() {
}
zle -N fuck-command-line
# Defined shortcut keys: [Esc] [Esc]
-bindkey "\e\e" fuck-command-line
+bindkey -M emacs '\e\e' fuck-command-line
+bindkey -M vicmd '\e\e' fuck-command-line
+bindkey -M viins '\e\e' fuck-command-line