Add zsh keybinds

This commit is contained in:
Marko Korhonen 2024-09-19 20:42:54 +03:00
parent c02caefa6a
commit a65c072fcb
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890

View file

@ -97,6 +97,17 @@
if [ "''${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then if [ "''${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi fi
# use <ESC> e to open command in editor
autoload edit-command-line; zle -N edit-command-line
bindkey -M vicmd e edit-command-line
# bind delete in normal mode
bindkey -M vicmd '^[[3~' delete-char
# Rebind fzf to ctrl+f
bindkey '^F' fzf-file-widget
bindkey '^T' transpose-chars
''; '';
}; };