zsh vi mode, bash fix yank-last-arg
This commit is contained in:
parent
d940cab887
commit
d6124155b6
@ -8,3 +8,5 @@ shopt -s checkwinsize ## Update col/lines after commands
|
|||||||
shopt -s cdspell ## Fixes minor spelling errors in cd paths
|
shopt -s cdspell ## Fixes minor spelling errors in cd paths
|
||||||
shopt -s no_empty_cmd_completion ## Stops empty line tab comp
|
shopt -s no_empty_cmd_completion ## Stops empty line tab comp
|
||||||
shopt -s dirspell 2>/dev/null ## Tab comp can fix dir name typos
|
shopt -s dirspell 2>/dev/null ## Tab comp can fix dir name typos
|
||||||
|
|
||||||
|
bind '"\e."':yank-last-arg
|
||||||
|
|||||||
@ -14,7 +14,8 @@ WORDCHARS=${WORDCHARS//\/} # Don't consider certain characters part of the word
|
|||||||
PROMPT_EOL_MARK=""
|
PROMPT_EOL_MARK=""
|
||||||
|
|
||||||
# configure key keybindings
|
# configure key keybindings
|
||||||
bindkey -e # emacs key bindings
|
bindkey -v
|
||||||
|
bindkey -M viins 'jk' vi-cmd-mode
|
||||||
bindkey ' ' magic-space # do history expansion on space
|
bindkey ' ' magic-space # do history expansion on space
|
||||||
bindkey '^[[3;5~' kill-word # ctrl + Supr
|
bindkey '^[[3;5~' kill-word # ctrl + Supr
|
||||||
bindkey '^[[3~' delete-char # delete
|
bindkey '^[[3~' delete-char # delete
|
||||||
@ -27,5 +28,4 @@ bindkey '^[[F' end-of-line # end
|
|||||||
bindkey '^[[Z' undo # shift + tab undo last action
|
bindkey '^[[Z' undo # shift + tab undo last action
|
||||||
bindkey '^K' up-line-or-history
|
bindkey '^K' up-line-or-history
|
||||||
bindkey '^J' down-line-or-history
|
bindkey '^J' down-line-or-history
|
||||||
bindkey '^E' vi-forward-word
|
bindkey -M viins '\e.' insert-last-word
|
||||||
bindkey '^B' vi-backward-word
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user