Skip to content

Commit e9ffed1

Browse files
committed
ZSH: Accept completion and execute with Enter in menu select
1 parent e4f011d commit e9ffed1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

home/dot_config/zsh/exact_private_zsh.d/private_050_completion.zsh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ compdef tit=git
2222
# Menu selection: highlight the current completion
2323
zstyle ':completion:*' menu select
2424

25+
# Accept completion and execute with Enter (like bash)
26+
zmodload zsh/complist
27+
bindkey -M menuselect '^M' .accept-line
28+
2529
# Case-insensitive matching
2630
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
2731

0 commit comments

Comments
 (0)