bash: add ble.sh changed vi keybindings

This commit is contained in:
Benjamin Bädorf 2023-02-07 13:14:30 +01:00 committed by teutat3s
parent e0e34f9c95
commit 0e84e1ef2a
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -54,6 +54,23 @@ in {
bleopt history_share=1
bleopt filename_ls_colors="$LS_COLORS"
# Bash vim mode keybindings
if [[ $- == *i* ]]; then # in interactive session
set -o vi
ble-bind -m vi_imap -f 'ENTER' 'vi_imap/complete'
ble-bind -m vi_imap -f 'TAB' 'vi_imap/complete'
ble-bind -m vi_imap -f 'j j' 'vi_imap/normal-mode'
ble-bind -m vi_imap -f 'ESC' 'vi_imap/normal-mode'
ble-bind -m vi_nmap -f 'h' 'vi_nmap/insert-mode'
ble-bind -m vi_nmap -f 'i' 'vi-command/backward-line'
ble-bind -m vi_nmap -f 'j' 'vi-command/backward-char'
ble-bind -m vi_nmap -f 'k' 'vi-command/forward-line'
ble-bind -m vi_nmap -f 'l' 'vi-command/forward-char'
fi
source ${config.age.secrets.environment-secrets.path}
# end of .bashrc