dotfiles/home/.zsh/cmd/vmc.sh

19 lines
448 B
Bash
Raw Normal View History

2019-07-23 15:54:26 +00:00
### ASDF
# uninstall multiple languages at once, async
# mnemonic [V]ersion [M]anager [C]lean
lang=${1}
if [[ -z $lang ]]; then
lang=$(asdf plugin-list | eval "fzf ${FZF_DEFAULT_OPTS} -m --header='[asdf:clean]'")
fi
if [[ $lang ]]; then
for lng in $(echo $lang); do
for version in $(asdf list $lng | sort -nrk1,1 | eval "fzf ${FZF_DEFAULT_OPTS} -m --header='[asdf:${lng}:clean]'")
do asdf uninstall $lng $version
done
done
fi