From ddb1cbf96ebcad6033058bfc41f4448e075167f6 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 29 Mar 2022 10:30:06 -0400 Subject: [PATCH] Move sdkman init to zprofile to work with Emacs --- zsh/.zprofile | 4 ++++ zsh/.zshrc | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/zsh/.zprofile b/zsh/.zprofile index fa94f34..af30263 100644 --- a/zsh/.zprofile +++ b/zsh/.zprofile @@ -5,3 +5,7 @@ ulimit -n 10240 export PATH="$PATH:/Users/jdormit/.local/bin" eval "$(pyenv init --path)" export SYSTEM_VERSION_COMPAT=1 + +#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! +export SDKMAN_DIR="$HOME/.sdkman" +[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh" diff --git a/zsh/.zshrc b/zsh/.zshrc index f27d7bd..9826d96 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -170,7 +170,3 @@ vterm_prompt_end() { } setopt PROMPT_SUBST PROMPT=$PROMPT'%{$(vterm_prompt_end)%}' - -#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! -export SDKMAN_DIR="$HOME/.sdkman" -[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"