1
0
Fork 0

cleanup aliasrc

This commit is contained in:
Luca Bilke 2022-08-08 09:27:22 +02:00
parent cd001dc88c
commit 51f9252217
1 changed files with 10 additions and 6 deletions

View File

@ -34,12 +34,6 @@ bindkey -M menuselect 'h' vi-backward-char
bindkey -M menuselect 'k' vi-up-line-or-history bindkey -M menuselect 'k' vi-up-line-or-history
bindkey -M menuselect 'l' vi-forward-char bindkey -M menuselect 'l' vi-forward-char
bindkey -M menuselect 'j' vi-down-line-or-history bindkey -M menuselect 'j' vi-down-line-or-history
bindkey -v '^?' backward-delete-char
bindkey '^[[P' delete-char
bindkey "^[[H" beginning-of-line
bindkey '^[[F' end-of-line
bindkey '^[[1;5C' forward-word
bindkey '^[[1;5D' backward-word
# Change cursor shape for different vi modes. # Change cursor shape for different vi modes.
function zle-keymap-select () { function zle-keymap-select () {
@ -87,6 +81,7 @@ _lfcd () {
zle -N _lfcd zle -N _lfcd
bindkey '^o' _lfcd bindkey '^o' _lfcd
# bind lazygit to ctrl-g
lg () { lg () {
lazygit lazygit
tput cuu1;tput el tput cuu1;tput el
@ -104,6 +99,15 @@ bindkey '^g' _lazygit
autoload edit-command-line; zle -N edit-command-line autoload edit-command-line; zle -N edit-command-line
bindkey '^e' edit-command-line bindkey '^e' edit-command-line
# other keybinds
bindkey -v '^?' backward-delete-char
bindkey '^[[P' delete-char
bindkey "^[[H" beginning-of-line
bindkey '^[[F' end-of-line
bindkey '^[[1;5C' forward-word
bindkey '^[[1;5D' backward-word
PLUGINS_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/zsh/plugins" PLUGINS_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/zsh/plugins"
[ -f "$PLUGINS_HOME/fzf/key-bindings.zsh" ] && source "$PLUGINS_HOME/fzf/key-bindings.zsh" [ -f "$PLUGINS_HOME/fzf/key-bindings.zsh" ] && source "$PLUGINS_HOME/fzf/key-bindings.zsh"