Fix asdf commands
This commit is contained in:
parent
2eddeed8b6
commit
92b4363a68
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user