Fix some asdf issues

This commit is contained in:
2025-08-15 16:56:24 -05:00
parent fb04063cdc
commit 7dbe5a57ba
4 changed files with 8 additions and 4 deletions

View File

View File

@@ -27,6 +27,12 @@ export ZDOTDIR="$XDG_CONFIG_HOME/zsh" # may already be set, set anyway
# git
export GIT_EDITOR="$EDITOR"
# language support/tools
export ASDF_DIR="$XDG_CONFIG_HOME/asdf"
export ASDF_CONFIG_FILE="$ASDF_DIR/.asdfrc"
export ASDF_DATA_DIR="$DIR_LOCAL/.asdf"
export ASDF_TOOL_VERSIONS_FILENAME=".asdf_tool_versions"
# clean-up of home dir
export __CF_USER_TEXT_ENCODING="0x0:0x0"

View File

@@ -34,4 +34,4 @@ alias journal="cd $DIR_HOME_BOX; $EDITOR .current-journal"
# TODO: refactor the below; simplify or at least move elsewhere
export DEVKITARM=/opt/devkitpro/devkitARM
. /opt/homebrew/opt/asdf/libexec/asdf.sh # TODO: ensure not duplicated asdf logic
. $(brew --prefix asdf)/libexec/asdf.sh

View File

@@ -1,7 +1,5 @@
# set env vars, path updates, etc
[[ -a $HOME/.local-box-vars ]] \
&& source $HOME/.local-box-vars \
&& . /usr/local/opt/asdf/libexec/asdf.sh
[[ -a $HOME/.local-box-vars ]] && source $HOME/.local-box-vars
# login shortcuts
alias assume="source assume"