Update dotfiles/.profile
This commit is contained in:
parent
552475467e
commit
cec041fcf7
1 changed files with 18 additions and 22 deletions
|
@ -202,28 +202,10 @@ fi
|
||||||
export GOPATH="${HOME}/.local/go"
|
export GOPATH="${HOME}/.local/go"
|
||||||
export GO111MODULE=on
|
export GO111MODULE=on
|
||||||
export PATH="$PATH:${GOPATH}/bin"
|
export PATH="$PATH:${GOPATH}/bin"
|
||||||
|
if command -v brew >/dev/null && command -v go > /dev/null; then
|
||||||
if command -v brew >/dev/null; then
|
GOROOT="$(brew --prefix golang)/libexec"
|
||||||
### Go
|
export GOROOT
|
||||||
if command -v go > /dev/null; then
|
export PATH="$PATH:${GOROOT}/bin"
|
||||||
GOROOT="$(brew --prefix golang)/libexec"
|
|
||||||
export GOROOT
|
|
||||||
export PATH="$PATH:${GOROOT}/bin"
|
|
||||||
fi
|
|
||||||
|
|
||||||
### ASDF
|
|
||||||
if command -v asdf > /dev/null; then
|
|
||||||
export ASDF_CONFIG_FILE="$HOME/.config/asdf/asdfrc"
|
|
||||||
export ASDF_DIR="$HOME/.local/asdf"
|
|
||||||
# export ASDF_DATA_DIR="$HOME/.local/asdf"
|
|
||||||
export ASDF_CRATE_DEFAULT_PACKAGES_FILE="$HOME/.config/asdf/default-cargo-pkgs
|
|
||||||
export ASDF_GEM_DEFAULT_PACKAGES_FILE="$HOME/.config/asdf/default-ruby-pkgs
|
|
||||||
export ASDF_GOLANG_DEFAULT_PACKAGES_FILE="$HOME/.config/asdf/default-golang-pkgs
|
|
||||||
export ASDF_PYTHON_DEFAULT_PACKAGES_FILE="$HOME/.config/asdf/default-python-pkgs
|
|
||||||
if [ -f "$(brew --prefix asdf)/libexec/asdf.sh" ]; then
|
|
||||||
. "$(brew --prefix asdf)/libexec/asdf.sh"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### Android Studio
|
### Android Studio
|
||||||
|
@ -232,6 +214,20 @@ export PATH="$PATH:~/Library/Android/sdk/platform-tools"
|
||||||
export PATH="$PATH:~/Library/Android/sdk/tools/bin"
|
export PATH="$PATH:~/Library/Android/sdk/tools/bin"
|
||||||
export PATH="$PATH:~/Library/Android/sdk/tools"
|
export PATH="$PATH:~/Library/Android/sdk/tools"
|
||||||
|
|
||||||
|
### ASDF
|
||||||
|
if command -v asdf > /dev/null; then
|
||||||
|
export ASDF_CONFIG_FILE="$HOME/.config/asdf/asdfrc"
|
||||||
|
export ASDF_DIR="$HOME/.local/asdf"
|
||||||
|
export ASDF_DATA_DIR="$HOME/.local/asdf-data"
|
||||||
|
export ASDF_CRATE_DEFAULT_PACKAGES_FILE="$HOME/.config/asdf/default-cargo-pkgs
|
||||||
|
export ASDF_GEM_DEFAULT_PACKAGES_FILE="$HOME/.config/asdf/default-ruby-pkgs
|
||||||
|
export ASDF_GOLANG_DEFAULT_PACKAGES_FILE="$HOME/.config/asdf/default-golang-pkgs
|
||||||
|
export ASDF_PYTHON_DEFAULT_PACKAGES_FILE="$HOME/.config/asdf/default-python-pkgs
|
||||||
|
if [ -f "$HOME/.local/asdf/asdf.sh" ]; then
|
||||||
|
. "$HOME/.local/asdf/asdf.sh"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
### fzf
|
### fzf
|
||||||
if [ -d /usr/local/opt/fzf/bin ]; then
|
if [ -d /usr/local/opt/fzf/bin ]; then
|
||||||
PATH="$PATH:/usr/local/opt/fzf/bin"
|
PATH="$PATH:/usr/local/opt/fzf/bin"
|
||||||
|
|
Loading…
Reference in a new issue