mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 08:13:40 -05:00
Updated Examples (markdown)
@@ -888,18 +888,12 @@ To search for windows and show which is currently active, add [ftwind](https://g
|
|||||||
vmi() {
|
vmi() {
|
||||||
local lang=${1}
|
local lang=${1}
|
||||||
|
|
||||||
if [[ $platform == 'linux' ]]; then
|
|
||||||
local tac="tac"
|
|
||||||
elif [[ $platform == 'darwin' ]]; then
|
|
||||||
local tac="tail -r"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ! $lang ]]; then
|
if [[ ! $lang ]]; then
|
||||||
lang=$(asdf plugin-list | fzf)
|
lang=$(asdf plugin-list | fzf)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $lang ]]; then
|
if [[ $lang ]]; then
|
||||||
local versions=$(asdf list-all $lang | $tac | fzf --multi)
|
local versions=$(asdf list-all $lang | fzf --tac --no-sort --multi)
|
||||||
if [[ $versions ]]; then
|
if [[ $versions ]]; then
|
||||||
for version in $(echo $versions);
|
for version in $(echo $versions);
|
||||||
do; asdf install $lang $version; done;
|
do; asdf install $lang $version; done;
|
||||||
|
|||||||
Reference in New Issue
Block a user