Skip to content

Commit 020669e

Browse files
Getting ready for asdf version 0.16.0
1 parent 167d5c5 commit 020669e

File tree

3 files changed

+36
-19
lines changed

3 files changed

+36
-19
lines changed

MacOS/bash_profile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,30 @@ if [[ "$(uname -m)" == 'arm64' ]]; then
33
else
44
eval "$(/usr/local/bin/brew shellenv)"
55
fi
6+
67
# Homebrew's Bash completion stuff
78
if [ -f "$(brew --prefix)"/etc/bash_completion ]; then
89
# shellcheck disable=SC1091
910
source "$(brew --prefix)"/etc/bash_completion
1011
fi
1112

13+
# `asdf` is now managed by homebrew
14+
# shellcheck disable=SC1090
15+
. <(asdf completion bash)
16+
# Hook direnv into your shell.
17+
# shellcheck disable=SC1091
18+
. "${XDG_CONFIG_HOME:-$HOME/.config}/asdf-direnv/bashrc"
19+
20+
# Go specific env vars
21+
GOPATH="${HOME}/src/gopath"
22+
GOROOT="$(asdf where golang)/go"
23+
export GOPATH GOROOT
24+
25+
# Java specific env vars
26+
JDK_HOME="$(asdf where java)"
27+
JAVA_HOME="$(asdf where java)/jre"
28+
export JDK_HOME JAVA_HOME
29+
1230
# Update PATH
1331
export PATH="$(brew --prefix)/opt/curl/bin:${PATH}:${HOME}/src/gopath/bin:${HOME}/bin"
1432

Ubuntu/bash_profile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
2+
3+
# `asdf` is now managed by homebrew
4+
# shellcheck disable=SC1090
5+
. <(asdf completion bash)
6+
# Hook direnv into your shell.
7+
# shellcheck disable=SC1091
8+
. "${XDG_CONFIG_HOME:-$HOME/.config}/asdf-direnv/bashrc"
9+
10+
# Go specific env vars
11+
GOPATH="${HOME}/src/gopath"
12+
GOROOT="$(asdf where golang)/go"
13+
export GOPATH GOROOT
14+
15+
# Java specific env vars
16+
JDK_HOME="$(asdf where java)"
17+
JAVA_HOME="$(asdf where java)/jre"
18+
export JDK_HOME JAVA_HOME
19+
220
# check the window size after each command and, if necessary,
321
# update the values of LINES and COLUMNS.
422
shopt -s checkwinsize

bash_profile

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,29 +22,10 @@ if [ -f "${HOME}"/.bash_aliases ]; then
2222
. "${HOME}"/.bash_aliases
2323
fi
2424

25-
# https://asdf-vm.com/guide/getting-started.html#_3-install-asdf
26-
# shellcheck disable=SC1091
27-
. "${HOME}"/.asdf/asdf.sh
28-
# shellcheck disable=SC1091
29-
. "${HOME}"/.asdf/completions/asdf.bash
30-
# Hook direnv into your shell.
31-
# shellcheck disable=SC1091
32-
. "${XDG_CONFIG_HOME:-$HOME/.config}/asdf-direnv/bashrc"
33-
3425
# Change Pinta Language back to english
3526
#export LANG=en_GB
3627
#export LANG=en_US.UTF-8
3728

38-
# Go specific env vars
39-
GOPATH="${HOME}/src/gopath"
40-
GOROOT="$(asdf where golang)/go"
41-
export GOPATH GOROOT
42-
43-
# Java specific env vars
44-
JDK_HOME="$(asdf where java)"
45-
JAVA_HOME="$(asdf where java)/jre"
46-
export JDK_HOME JAVA_HOME
47-
4829
# Verbose terraform stderr
4930
# export TF_LOG="TRACE"
5031

0 commit comments

Comments
 (0)