97c0d0a563d2303adc64e94c78544bb4d2dbf83c
- Author
- SomeDer <48731521+SomeDer@users.noreply.github.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
Allow plugins sudo and thefuck to be loaded before vi-mode (#8087)
Diff
1diff --git a/plugins/sudo/sudo.plugin.zsh b/plugins/sudo/sudo.plugin.zsh
2index 0b843822ea249952a4a0a0e81f7db29a0100a835..f405b025f333c8278047d6f8832e3fb700d6de70 100644
3--- a/plugins/sudo/sudo.plugin.zsh
4+++ b/plugins/sudo/sudo.plugin.zsh
5@@ -28,4 +28,6 @@ sudo-command-line() {
6 }
7 zle -N sudo-command-line
8 # Defined shortcut keys: [Esc] [Esc]
9-bindkey "\e\e" sudo-command-line
10+bindkey -M emacs '\e\e' sudo-command-line
11+bindkey -M vicmd '\e\e' sudo-command-line
12+bindkey -M viins '\e\e' sudo-command-line
13diff --git a/plugins/thefuck/thefuck.plugin.zsh b/plugins/thefuck/thefuck.plugin.zsh
14index ac88e67de12d855f3295b90911a455f6b1c30f59..b8586c70d9aae241fb4bf2e3e3dc43b09cb2bdab 100644
15--- a/plugins/thefuck/thefuck.plugin.zsh
16+++ b/plugins/thefuck/thefuck.plugin.zsh
17@@ -15,4 +15,6 @@ fuck-command-line() {
18 }
19 zle -N fuck-command-line
20 # Defined shortcut keys: [Esc] [Esc]
21-bindkey "\e\e" fuck-command-line
22+bindkey -M emacs '\e\e' fuck-command-line
23+bindkey -M vicmd '\e\e' fuck-command-line
24+bindkey -M viins '\e\e' fuck-command-line