Skip to content

Commit 50637c2

Browse files
committed
feat: Add zsh auto-completion
Add zsh auto-completion using zstyle and setopt. Signed-off-by: Howard Chu <[email protected]>
1 parent 1e4a24e commit 50637c2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: src/main.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ fi
6868
6969
if [[ "$0" == "zsh" ]];
7070
then
71-
true
71+
autoload -U compinit
72+
compinit
73+
setopt globdots
74+
zstyle ':completion:*:*:ts:*' file-patterns '*(-/):directories'
7275
fi
7376
"###;
7477
print!("{}", script);

0 commit comments

Comments
 (0)