updated zsh settings

This commit is contained in:
Paul 2021-04-07 12:48:50 +02:00
parent 623abc1bad
commit 54df9e1e04
3 changed files with 17 additions and 8 deletions

View File

@ -17,7 +17,7 @@ zsh-autosuggestions-repo:
zsh-omz-profile:
file.managed:
- name: /usr/share/zsh/zprofile
- name: /etc/zsh/zprofile
- source: salt://zsh/zprofile.j2
- user: root
- group: root

View File

@ -6,24 +6,33 @@ export JAVA_OPTS='-XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee'
# Golang settings
export GOPATH=~/go
export GOROOT=/usr/local/apps/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
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
export PATH=$PATH:$HOME/.cargo/bin
if [[ -d ~/.cargo/bin ]]
then
export PATH=$PATH:$HOME/.cargo/bin
fi
# Android settings
export ANDROID_HOME=~/Android
if [[ -d ~/Android ]]
then
export ANDROID_HOME=~/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 golang nmap zsh-autosuggestions)
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)

View File

@ -1,3 +1,3 @@
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
source /usr/share/zsh/zprofile
source /etc/zsh/zprofile