2024-01-08 11:46AM
参考:https://github.com/asdf-vm/asdf
1. 安装asdf
$ git clone https://github.com/asdf-vm/asdf.git
Cloning into 'asdf'...
remote: Enumerating objects: 8663, done.
remote: Counting objects: 100% (576/576), done.
remote: Compressing objects: 100% (316/316), done.
remote: Total 8663 (delta 288), reused 445 (delta 249), pack-reused 8087
Receiving objects: 100% (8663/8663), 2.87 MiB | 3.02 MiB/s, done.
Resolving deltas: 100% (5130/5130), done.
2. 打开 ~/.bashrc 文件
vim ~/.bashrc
3. 添加一下内容:
. $HOME/asdf/asdf.sh
. $HOME/asdf/completions/asdf.bash
4. 保存退出,并重新加载配置:
source ~/.bashrc
5. 查看一下版本
$ asdf --version
v0.10.2-7e7a1faa
6. 使用 asdf 验证是否安装成功
$ asdf
version: v0.10.2-7e7a1faa
MANAGE PLUGINS
asdf plugin add <name> [<git-url>] Add a plugin from the plugin repo OR,
add a Git repo as a plugin by
specifying the name and repo url
asdf plugin list [--urls] [--refs] List installed plugins. Optionally show
git urls and git-ref
asdf plugin list all List plugins registered on asdf-plugins
repository with URLs
asdf plugin remove <name> Remove plugin and package versions
asdf plugin update <name> [<git-ref>] Update a plugin to latest commit on
default branch or a particular git-ref
asdf plugin update --all Update all plugins to latest commit on
default branch
……
……
RESOURCES
GitHub: https://github.com/asdf-vm/asdf
Docs: https://asdf-vm.com
"Late but latest"
-- Rajinikanth
就表示安装成功了。
登录
请登录后再发表评论。
评论列表:
目前还没有人发表评论