dotfiles/cli/asdf.sh

15 lines
419 B
Bash
Raw Normal View History

2021-06-27 07:32:49 +00:00
#!/bin/sh
set -e
DIR=$(dirname "$(readlink -f "$0")")
. "$DIR/../env.sh"
# install asdf, a multi-lang version manager
if ! has_cmd "asdf"; then
git_clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.8.1
mkdir -p ~/.config/fish/completions; and ln -s ~/.asdf/completions/asdf.fish ~/.config/fish/completions
asdf plugin add nodejs
asdf install nodejs latest
asdf global nodejs latest
fi