File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change
1
+ ## v0.1.0 (May 2, 2024)
2
+ * Increase zsh autocompletion compatibilty.
3
+
1
4
## v0.0.9 (April 4, 2024)
2
5
* Fixes issue with help command shorthand flag ` -h ` . [ #20 ] thanks @Masamerc
3
6
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
1
2
2
3
[ " $BASH_VERSION " ] && AWSD_CMD=" awsd" || AWSD_CMD=" _awsd"
3
4
_awsd_completion () {
@@ -6,4 +7,12 @@ _awsd_completion() {
6
7
COMPREPLY=($( compgen -W " $suggestions " -- $cur ) )
7
8
return 0
8
9
}
10
+
11
+ # complete is a bash builtin, but recent versions of ZSH come with a function
12
+ # called bashcompinit that will create a complete in ZSH. If the user is in
13
+ # ZSH, load and run bashcompinit before calling the complete function.
14
+ if [[ -n ${ZSH_VERSION-} ]]; then
15
+ autoload -U +X bashcompinit && bashcompinit
16
+ fi
17
+
9
18
complete -o nospace -F _awsd_completion " ${AWSD_CMD} "
You can’t perform that action at this time.
0 commit comments