diff options
| Commit | 2099bc2c7e5f8c31ea00d93786b43a0ca293a5ce (patch) | |
|---|---|---|
| Author | 2026-01-06 18:57:49 +0200 | |
| Committer | 2026-01-06 19:13:15 +0200 | |
| Files | 6cc82f7f3e799b81fdbe4ab8f8580a8249dcd240 | |
| .files-2099bc2c7e5f8c31ea00d93786b43a0ca293a5ce.tar .files-2099bc2c7e5f8c31ea00d93786b43a0ca293a5ce.tar.gz .files-2099bc2c7e5f8c31ea00d93786b43a0ca293a5ce.zip | ||
| Parent | 2d0e6cf575b377bc8b1f63b08dfc9a558ac2bb20 (diff) | |
feat(.bashrc): vi command mode change string keybindings
1 files changed, 5 insertions, 0 deletions
| -rw-r--r-- | .bashrc | 5 |
@@ -241,6 +241,11 @@ export PROMPT_COMMAND="shell_var_fix;" bind "set vi-ins-mode-string \"$(left_cap)i$(right_cap)\"" bind "set vi-cmd-mode-string \"$(left_cap $PS_WARN)n$(right_cap $PS_WARN)\"" + bind -m vi-command '"ca\"":"F\"cf\""' + bind -m vi-command '"ca'\''":"F'\''cf'\''"' + bind -m vi-command '"ci\"":"T\"ct\""' + bind -m vi-command '"ci'\''":"T'\''ct'\''"' + # Huge thanks to: https://lists.gnu.org/archive/html/help-bash/2022-02/msg00023.html bind -x "\"\xC0\a\":set_tab_title \"\$READLINE_LINE\";printf \"$(left_cap $PS_DBG)%(%T)T$(right_cap $PS_DBG)\"" bind '"\xC0\r":accept-line' |
