Skip to content

Commit e74fd69

Browse files
committed
Upgrade asdf to 0.16
Signed-off-by: Timo Sand <[email protected]>
1 parent ae7a921 commit e74fd69

File tree

2 files changed

+3
-29
lines changed

2 files changed

+3
-29
lines changed

zprofile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ export LESSCHARSET=utf-8
2020
BIN_PATH="$HOME/bin:$HOME/local/bin" # Add ~/bin to PATH
2121
CABAL_PATH="$HOME/.cabal/bin" # Add cabal binaries to PATH
2222
STACK_INSTALL_PATH="$HOME/.local/bin/"
23-
KREW_PATH="${KREW_ROOT:-$HOME/.krew}/bin" # Add krew to PATH
24-
GOBIN="$HOME/go/bin" # Adds binaries installed with `go install` to PATH
23+
KREW_PATH="${KREW_ROOT:-$HOME/.krew}/bin" # Add krew to PATH
24+
GOBIN="$HOME/go/bin" # Adds binaries installed with `go install` to PATH
25+
PATH="${ASDF_DATA_DIR:-$HOME/.asdf}/shims:$PATH" # Adds asdf shims to PATH
2526

2627
PATH=$CABAL_PATH:$STACK_INSTALL_PATH:$BIN_PATH:$KREW_PATH:$GOBIN:$PATH
2728
PATH="$HOME/.poetry/bin:$PATH"

zsh/tools.zsh

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,5 @@
11
#!/bin/sh
22

3-
# https://asdf-vm.com/guide/getting-started.html#_3-install-asdf
4-
source "$BREW_PREFIX/opt/asdf/libexec/asdf.sh"
5-
6-
asdf-use() {
7-
plugin=$1
8-
shift
9-
version=$1
10-
shift
11-
command=$@
12-
13-
(
14-
asdf shell $plugin $version
15-
eval $command
16-
)
17-
}
18-
19-
asdf-each() {
20-
local plugin=$1
21-
shift
22-
local command=$@
23-
24-
for version in $(asdf list $plugin); do
25-
echo "Running '$command' for $plugin version $version"
26-
asdf-use $plugin $version $command
27-
done
28-
}
29-
303
direnv() { asdf exec direnv "$@"; }
314

325
if type zoxide >/dev/null; then

0 commit comments

Comments
 (0)