paulbsd-salt/states/zsh/zprofile.j2
2021-08-19 21:15:24 +02:00

55 lines
1.1 KiB
Django/Jinja

## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
# Main environments variables
export EDITOR=vim
export JAVA_OPTS='-XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee'
# Golang settings
if [[ -d /usr/local/apps/go ]]
then
export GOPATH=~/go
export GOROOT=/usr/local/apps/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
fi
# Rust settings
if [[ -d ~/.cargo/bin ]]
then
export PATH=$PATH:$HOME/.cargo/bin
fi
# Android settings
if [[ -d ~/Android ]]
then
export ANDROID_SDK_ROOT=~/Android
fi
# Oh my ZSH settings
export ZSH=/usr/share/oh-my-zsh
ZSH_THEME="jreese"
DISABLE_AUTO_UPDATE="true"
plugins=(common-aliases sudo docker salt git ansible command-not-found systemd python nmap zsh-autosuggestions)
#for example
#plugins=(common-aliases sudo docker salt git ansible command-not-found virtualenvwrapper tmux systemd python golang nmap)
if [[ -f $ZSH/oh-my-zsh.sh ]]
then
source $ZSH/oh-my-zsh.sh
fi
# Acme settings
if [[ -f /root/.acme.sh/acme.sh.env ]]
then
. /root/.acme.sh/acme.sh.env
fi
# Misc settings
bindkey -e
unsetopt share_history