From 92b4363a688fe7459aa362872c07d29e6345bbb3 Mon Sep 17 00:00:00 2001 From: Anton Zadvorny Date: Sat, 28 Dec 2019 18:28:55 +0300 Subject: [PATCH] Fix asdf commands --- home/.zsh/cmd/vmc.sh | 2 +- home/.zsh/cmd/vmi.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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