diff --git a/dotfiles/.profile b/dotfiles/.profile index 4f21a306..6bb64a55 100644 --- a/dotfiles/.profile +++ b/dotfiles/.profile @@ -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"