feat: add sdkman

This commit is contained in:
max_richter 2021-01-20 21:03:39 +01:00
parent 6d45d2f0cd
commit 9d82a465f4
2 changed files with 11 additions and 2 deletions

View File

@ -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"

8
.zshrc
View File

@ -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"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"