dotfiles/system/completions/update.sh

17 lines
309 B
Bash
Raw Normal View History

2022-04-13 00:53:34 -05:00
#!/usr/bin/env zsh
gen() {
2022-04-15 08:41:08 -05:00
if is-executable $1; then
echo "$1 updated"
"$@" >"_$argv[1]"
else
echo "skipping $1"
fi
2022-04-13 00:53:34 -05:00
}
echo "GENERATING COMPLETION SCRIPTS"
echo "-----------------------------"
gen sheldon completions --shell zsh
gen just --completions zsh
gen zellij setup --generate-completion zsh