Update dotfiles/.profile

This commit is contained in:
Brian Zalewski 2022-11-05 05:30:41 +00:00
parent a171d16f59
commit 662490fe5a

View file

@ -89,6 +89,18 @@ if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ] || [ "$0" = 'zsh' ] || [ "$0" = '
fi
fi
### ASDF
if [ -f "$HOME/.local/asdf/asdf.sh" ]; 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
. "$HOME/.local/asdf/asdf.sh"
fi
### MOTD
# Add file named .hushlogin in the user's home directory to disable the MOTD
if [ ! -f ~/.hushlogin ] && [ "$SHLVL" -eq 1 ]; then
@ -150,18 +162,6 @@ export MANPAGER="less -X"
### .local/bin
export PATH="$PATH:$HOME/.local/bin"
### ASDF
if [ -f "$HOME/.local/asdf/asdf.sh" ]; 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
. "$HOME/.local/asdf/asdf.sh"
fi
### Cargo
if [ -f "$HOME/.cargo/env" ]; then
. "$HOME/.cargo/env"