2020-07-10 00:58:55 +02:00
|
|
|
## {{ 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
|
2021-04-07 12:48:50 +02:00
|
|
|
if [[ -d /usr/local/apps/go ]]
|
|
|
|
then
|
|
|
|
export GOPATH=~/go
|
|
|
|
export GOROOT=/usr/local/apps/go
|
|
|
|
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
|
|
|
|
fi
|
2020-07-10 00:58:55 +02:00
|
|
|
|
|
|
|
|
2020-07-30 14:10:22 +02:00
|
|
|
# Rust settings
|
2021-04-07 12:48:50 +02:00
|
|
|
if [[ -d ~/.cargo/bin ]]
|
|
|
|
then
|
|
|
|
export PATH=$PATH:$HOME/.cargo/bin
|
|
|
|
fi
|
2020-07-30 14:10:22 +02:00
|
|
|
|
|
|
|
|
2020-12-26 17:42:09 +01:00
|
|
|
# Android settings
|
2021-04-07 12:48:50 +02:00
|
|
|
if [[ -d ~/Android ]]
|
|
|
|
then
|
|
|
|
export ANDROID_HOME=~/Android
|
|
|
|
fi
|
2020-12-26 17:42:09 +01:00
|
|
|
|
|
|
|
|
2020-07-10 00:58:55 +02:00
|
|
|
# Oh my ZSH settings
|
|
|
|
export ZSH=/usr/share/oh-my-zsh
|
|
|
|
ZSH_THEME="jreese"
|
|
|
|
DISABLE_AUTO_UPDATE="true"
|
2021-04-07 12:48:50 +02:00
|
|
|
plugins=(common-aliases sudo docker salt git ansible command-not-found systemd python nmap zsh-autosuggestions)
|
2020-10-25 16:38:21 +01:00
|
|
|
|
|
|
|
#for example
|
2020-09-24 00:34:19 +02:00
|
|
|
#plugins=(common-aliases sudo docker salt git ansible command-not-found virtualenvwrapper tmux systemd python golang nmap)
|
2020-07-10 00:58:55 +02:00
|
|
|
|
|
|
|
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
|
2020-07-30 14:10:22 +02:00
|
|
|
unsetopt share_history
|