Move env and completions to correct places.

This commit is contained in:
Sebastian Bugge 2024-08-23 15:54:50 +02:00
parent 2524cd5494
commit 2cb3b103a9
3 changed files with 26 additions and 31 deletions

19
.zprofile Normal file
View file

@ -0,0 +1,19 @@
ASDF_TMP=$(mktemp)
if asdf current golang >"$ASDF_TMP" 2>/dev/null; then
ASDF_GO="$HOME/.asdf/installs/golang/$(awk -F' ' '{print $2}' <"$ASDF_TMP")"
fi
if [ -d "$ASDF_GO" ]; then
ASDF_GOBIN="$ASDF_GO/packages/bin/"
PATH="$ASDF_GOBIN:$PATH"
fi
export NVM_DIR="$HOME/.nvm"
if [ -s "$NVM_DIR/nvm.sh" ]; then
\. "$NVM_DIR/nvm.sh" # This loads nvm
fi
[ -f "/home/kaholaz/.ghcup/env" ] && source "/home/kaholaz/.ghcup/env" # ghcup-env
if [ -d "$HOME/.asdf" ]; then
\. "$HOME/.asdf/asdf.sh"
fi