Skip to content

Commit f51590e

Browse files
moshe5745marcossevillaMoshe Yamini
authored
feat: enhance Zsh completion with menu selection (#104)
Co-authored-by: Marcos Sevilla <[email protected]> Co-authored-by: Moshe Yamini <[email protected]>
1 parent a12a06c commit f51590e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

lib/src/installer/shell_completion_configuration.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ if type compdef &>/dev/null; then
7777
7878
IFS=\$'\n' reply=(\$(COMP_CWORD="\$((CURRENT-1))" COMP_LINE="\$BUFFER" COMP_POINT="\$CURSOR" $rootCommand completion -- "\${words[@]}"))
7979
IFS=\$si
80+
81+
zstyle ':completion:*' menu yes select
82+
zstyle ':completion:*' list-colors ''
8083
8184
if [[ -z "\$reply" ]]; then
8285
_path_files

test/src/installer/shell_completion_configuration_test.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ if type compdef &>/dev/null; then
3535
3636
IFS=\$'\n' reply=(\$(COMP_CWORD="\$((CURRENT-1))" COMP_LINE="\$BUFFER" COMP_POINT="\$CURSOR" very_good completion -- "\${words[@]}"))
3737
IFS=\$si
38+
39+
zstyle ':completion:*' menu yes select
40+
zstyle ':completion:*' list-colors ''
3841
3942
if [[ -z "\$reply" ]]; then
4043
_path_files

0 commit comments

Comments
 (0)