From 4dae06e460639376659dc7976e3fd48e716f0ad6 Mon Sep 17 00:00:00 2001 From: Jim Richter Date: Thu, 18 Mar 2021 14:10:17 +0100 Subject: [PATCH] feat: small changes --- configs/.bashrc | 6 ++++++ configs/.zshrc | 19 +++++++++++++------ 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/configs/.bashrc b/configs/.bashrc index 9360f69..5b28db6 100644 --- a/configs/.bashrc +++ b/configs/.bashrc @@ -111,3 +111,9 @@ if ! shopt -oq posix; then . /etc/bash_completion fi fi + +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm +[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion + +[[ -s "/home/jim/.gvm/scripts/gvm" ]] && source "/home/jim/.gvm/scripts/gvm" diff --git a/configs/.zshrc b/configs/.zshrc index d0dd630..04d5f85 100644 --- a/configs/.zshrc +++ b/configs/.zshrc @@ -29,17 +29,15 @@ export PATH="$PATH:$HOME/.local/bin" export PATH="$PATH:$HOME/bin" export PATH="$PATH:$HOME/go/bin" +## Setup VIM +export EDITOR="nvim" +export VIMRUNTIME="~/bin/neovim/runtime" + ## GO STUFF export PATH=$PATH:/usr/local/go/bin [[ -s $(which direnv) ]] && eval "$(direnv hook zsh)" -if [ -s "$HOME/.pyenv" ]; then - export PYENV_ROOT="$HOME/.pyenv" - export PATH="$PYENV_ROOT/bin:$PATH" - eval "$(pyenv init -)" -fi - #Java version manager export SDKMAN_DIR="$HOME/.sdkman" [[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh" @@ -59,8 +57,17 @@ if [ -d $HOME/.dotnet ]; then export PATH=$PATH:$HOME/.dotnet; fi +#Load pyenv if found +if [ -s "$HOME/.pyenv" ]; then + export PYENV_ROOT="$HOME/.pyenv" + export PATH="$PYENV_ROOT/bin:$PATH" + eval "$(pyenv init -)" +fi + # The next line updates PATH for the Google Cloud SDK. if [ -f '/home/coder/downloads/google-cloud-sdk/path.zsh.inc' ]; then . '/home/coder/downloads/google-cloud-sdk/path.zsh.inc'; fi # The next line enables shell command completion for gcloud. if [ -f '/home/coder/downloads/google-cloud-sdk/completion.zsh.inc' ]; then . '/home/coder/downloads/google-cloud-sdk/completion.zsh.inc'; fi + +export GOPATH="$HOME/go"; export GOROOT="$HOME/.go"; export PATH="$GOPATH/bin:$PATH"; # g-install: do NOT edit, see https://github.com/stefanmaric/g