2023-03-20 09:19:27 -05:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
|
|
|
|
CURDIR=${0:a:h}
|
|
|
|
|
|
|
|
is-exe () {
|
|
|
|
[ -x "$(command -v $1)" ] && return 0 || return 1
|
|
|
|
}
|
|
|
|
|
|
|
|
gen() {
|
|
|
|
if is-exe "$1"; then
|
|
|
|
"$@" | sed "s#$HOME#\$HOME#g" >$CURDIR/"_$argv[1]"
|
2024-12-04 09:56:12 -06:00
|
|
|
echo "$1 updated"
|
2023-03-20 09:19:27 -05:00
|
|
|
else
|
|
|
|
echo "skipping $1"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
echo "GENERATING COMPLETION SCRIPTS"
|
|
|
|
echo "-----------------------------"
|
2023-07-13 10:31:18 -05:00
|
|
|
|
2023-03-20 09:19:27 -05:00
|
|
|
gen pdm completion zsh
|
2023-04-26 12:20:40 -05:00
|
|
|
gen chezmoi completion zsh
|
2023-05-16 13:07:16 -05:00
|
|
|
gen rye self completion -s zsh
|
2023-05-18 10:44:39 -05:00
|
|
|
gen gh completion -s zsh
|
2023-07-13 10:31:18 -05:00
|
|
|
gen pixi completion -s zsh
|
2024-03-27 14:41:47 -05:00
|
|
|
gen rclone completion zsh -
|
2024-12-04 09:56:12 -06:00
|
|
|
gen jj util completion zsh
|