diff --git a/home/.zsh/cmd/vmc.sh b/home/.zsh/cmd/vmc.sh index 9655422..26c8f3d 100755 --- a/home/.zsh/cmd/vmc.sh +++ b/home/.zsh/cmd/vmc.sh @@ -11,7 +11,7 @@ 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 + do asdf uninstall $lng $version done done fi diff --git a/home/.zsh/cmd/vmi.sh b/home/.zsh/cmd/vmi.sh index 295a673..b89b59a 100755 --- a/home/.zsh/cmd/vmi.sh +++ b/home/.zsh/cmd/vmi.sh @@ -6,7 +6,7 @@ lang=${1} asdf plugin-list-all &>/dev/null 2>&1 if [[ -z $lang ]]; then - lang=$(asdf plugin-list-all | eval "fzf ${FZF_DEFAULT_OPTS} -m --header='[asdf:install]'") + lang=$(asdf plugin-list all | eval "fzf ${FZF_DEFAULT_OPTS} -m --header='[asdf:install]'" | awk '{print $1}') fi if [[ $lang ]]; then