From 9d82a465f465c276f4425cdf130873506a4dba67 Mon Sep 17 00:00:00 2001 From: Max Richter Date: Wed, 20 Jan 2021 21:03:39 +0100 Subject: [PATCH] feat: add sdkman --- .bashrc | 5 +++++ .zshrc | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index 89b93b7..c43691e 100644 --- a/.bashrc +++ b/.bashrc @@ -120,3 +120,8 @@ alias vim='nvim' alias vim='nvim' alias vim='nvim' alias vim='nvim' +alias vim='nvim' + +#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! +export SDKMAN_DIR="/home/jim/.sdkman" +[[ -s "/home/jim/.sdkman/bin/sdkman-init.sh" ]] && source "/home/jim/.sdkman/bin/sdkman-init.sh" diff --git a/.zshrc b/.zshrc index d343294..2d71e18 100644 --- a/.zshrc +++ b/.zshrc @@ -35,11 +35,15 @@ export PATH="$PATH:$HOME/.yarn/bin" export PATH="$PATH:$HOME/.local/bin" export PATH="$PATH:$HOME/go/bin" +export GOROOT="$HOME/go" +export GOPATH="$HOME/SYNC" +export PATH="$PATH:$GOROOT/bin" + eval "$(direnv hook zsh)" #Java version manager export SDKMAN_DIR="$HOME/.sdkman" -[[ -s "$HOME/jim/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh" +[[ -s "$SDKMAN_DIR/bin/sdkman-init.sh" ]] && source "$SDKMAN_DIR/bin/sdkman-init.sh" # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh @@ -49,4 +53,4 @@ export SDKMAN_DIR="$HOME/.sdkman" # Node Version manager export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" -[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" \ No newline at end of file +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"