mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
now ESC-. gives you the last argument of the previous command
This commit is contained in:
parent
fc75ce1a18
commit
9525512518
1 changed files with 4 additions and 1 deletions
|
|
@ -5,7 +5,10 @@ compinit
|
||||||
bindkey -e
|
bindkey -e
|
||||||
bindkey '\ew' kill-region
|
bindkey '\ew' kill-region
|
||||||
bindkey -s '\el' "ls\n"
|
bindkey -s '\el' "ls\n"
|
||||||
bindkey -s '\e.' "..\n"
|
|
||||||
|
## insert last argument from last command
|
||||||
|
bindkey '\e.' insert-last-word
|
||||||
|
|
||||||
bindkey '^r' history-incremental-search-backward
|
bindkey '^r' history-incremental-search-backward
|
||||||
bindkey "^[[5~" up-line-or-history
|
bindkey "^[[5~" up-line-or-history
|
||||||
bindkey "^[[6~" down-line-or-history
|
bindkey "^[[6~" down-line-or-history
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue