Fix asdf commands

This commit is contained in:
Anton Zadvorny 2019-12-28 18:28:55 +03:00
parent 2eddeed8b6
commit 92b4363a68
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ fi
if [[ $lang ]]; then if [[ $lang ]]; then
for lng in $(echo $lang); do 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]'") 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
done done
fi fi

View File

@ -6,7 +6,7 @@ lang=${1}
asdf plugin-list-all &>/dev/null 2>&1 asdf plugin-list-all &>/dev/null 2>&1
if [[ -z $lang ]]; then 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 fi
if [[ $lang ]]; then if [[ $lang ]]; then