feat: more home cleanup variables

This commit is contained in:
winston 2022-10-11 07:38:18 +02:00
parent ea6ddd976c
commit 6456f7b216
Signed by: winston
GPG key ID: 3786770EDBC2B481

View file

@ -2,10 +2,10 @@
### COMMON ### ### COMMON ###
export EDITOR=nvim export EDITOR=nvim
export HISTFILE=~/.config/zsh/history export HISTFILE="$HOME/.config/zsh/history"
# don't write a less history # don't write a less history
export LESSHISTFILE=- export LESSHISTFILE=-
export GNUPGHOME=~/.config/gnupg export GNUPGHOME="$HOME/.config/gnupg"
# check if .local/bin is directory, if not create it # check if .local/bin is directory, if not create it
if [ ! -d "$HOME/.local/bin" ]; then if [ ! -d "$HOME/.local/bin" ]; then
@ -32,7 +32,8 @@ fi
### KUBERNETES ### ### KUBERNETES ###
export KUBECONFIG="$HOME/.config/kube/config" export KUBECONFIG="$HOME/.config/kube/config"
export KUBECACHEDIR="$HOME/.cache/kube" export KUBECACHEDIR="$HOME/.cache/kube"
export KREW_ROOT="$HOME/.local/krew" export KREW_ROOT="$HOME/.local/share/krew"
export MINIKUBE_HOME="$HOME/.local/share/minikube"
# add to path if ".krew" exists or $KREW_ROOT is set # add to path if ".krew" exists or $KREW_ROOT is set
if [ -d "$KREW_ROOT" ]; then if [ -d "$KREW_ROOT" ]; then
export PATH="$KREW_ROOT/bin:$PATH" export PATH="$KREW_ROOT/bin:$PATH"
@ -40,20 +41,22 @@ fi
export KUBE_EDITOR="$EDITOR" export KUBE_EDITOR="$EDITOR"
### PYTHON ### ### PYTHON ###
export PYENV_ROOT="$HOME/.local/share/pyenv"
export PYENV_VIRTUALENV_DISABLE_PROMPT=1 export PYENV_VIRTUALENV_DISABLE_PROMPT=1
if [ -d "$HOME/.pyenv/bin" ]; then if [ -d "$PYENV_ROOT/bin" ]; then
export PATH="$PATH:$HOME/.pyenv/bin" export PATH="$PATH:$PYENV_ROOT/bin"
fi fi
### RUST ### ### RUST ###
export CARGO_HOME="$HOME/.local/share/cargo" export CARGO_HOME="$HOME/.local/share/cargo"
export RUSTUP_HOME="$HOME/.local/share/rustup"
if [ -f "$CARGO_HOME/env" ]; then if [ -f "$CARGO_HOME/env" ]; then
. "$CARGO_HOME/env" . "$CARGO_HOME/env"
fi fi
export PATH="$PATH:$CARGO_HOME/bin" export PATH="$PATH:$CARGO_HOME/bin"
### NODE ### ### NODE ###
export NVM_DIR="$HOME/.config/nvm" export NVM_DIR="$HOME/.local/share/nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
# yarn # yarn
export PATH="$PATH:$HOME/.yarn/bin" export PATH="$PATH:$HOME/.yarn/bin"
@ -61,3 +64,6 @@ export PATH="$PATH:$HOME/.yarn/bin"
### GO ### ### GO ###
export GOPATH="$HOME/.local/share/go" export GOPATH="$HOME/.local/share/go"
export PATH="$PATH:$GOPATH/bin" export PATH="$PATH:$GOPATH/bin"
# RUBY
export RBENV_ROOT="$HOME/.local/share/rbenv"