dotfiles/lib/completions/update.sh

23 lines
511 B
Bash
Raw Normal View History

2022-04-13 00:53:34 -05:00
#!/usr/bin/env zsh
2022-10-06 10:53:31 -05:00
CURDIR=${0:a:h}
2022-04-13 00:53:34 -05:00
gen() {
2022-04-15 08:41:08 -05:00
if is-executable $1; then
echo "$1 updated"
"$@" | sed "s#$HOME#\$HOME#g" >$CURDIR/"_$argv[1]"
2022-04-15 08:41:08 -05:00
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
gen pdm completion zsh
2022-06-20 15:05:05 -05:00
# echo "FETCHING COMPLETION SCRIPTS"
# wget -O _task https://raw.githubusercontent.com/go-task/task/master/completion/zsh/_task