feat(zsh): improve completion behaviour
This commit is contained in:
parent
f488f772ee
commit
cf138810e6
2 changed files with 18 additions and 0 deletions
11
home/shell/first-tab-completion.zsh
Normal file
11
home/shell/first-tab-completion.zsh
Normal file
|
@ -0,0 +1,11 @@
|
|||
first-tab-completion() {
|
||||
if [[ $#BUFFER == 0 ]]; then
|
||||
BUFFER="cd "
|
||||
CURSOR=3
|
||||
zle list-choices
|
||||
# zle backward-kill-word # breaks completion
|
||||
else
|
||||
zle expand-or-complete
|
||||
fi
|
||||
}
|
||||
zle -N first-tab-completion
|
Loading…
Add table
Add a link
Reference in a new issue