2020-07-10 00:58:55 +02:00
|
|
|
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
|
2021-09-25 16:03:39 +02:00
|
|
|
{%- from "zsh/map.jinja" import zsh with context %}
|
2020-07-10 00:58:55 +02:00
|
|
|
|
2022-05-14 11:22:52 +02:00
|
|
|
export PATH=$PATH:/usr/local/bin:/usr/local/bin
|
|
|
|
|
2020-07-10 00:58:55 +02:00
|
|
|
# Main environments variables
|
2022-10-23 16:38:38 +02:00
|
|
|
export EDITOR=nvim
|
2020-07-10 00:58:55 +02:00
|
|
|
export JAVA_OPTS='-XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee'
|
|
|
|
|
2021-09-25 16:03:39 +02:00
|
|
|
{% if zsh.config.golang -%}
|
2020-07-10 00:58:55 +02:00
|
|
|
# Golang settings
|
2022-02-21 13:52:46 +01:00
|
|
|
if [[ -d /usr/local/apps/golang ]]
|
2021-04-07 12:48:50 +02:00
|
|
|
then
|
|
|
|
export GOPATH=~/go
|
2022-01-25 00:19:41 +01:00
|
|
|
export GOROOT=/usr/local/apps/golang
|
2022-12-06 20:27:14 +01:00
|
|
|
export GO111MODULE=auto
|
2021-04-07 12:48:50 +02:00
|
|
|
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
|
|
|
|
fi
|
2021-09-25 16:03:39 +02:00
|
|
|
{%- endif %}
|
2020-07-10 00:58:55 +02:00
|
|
|
|
2021-09-25 16:03:39 +02:00
|
|
|
{% if zsh.config.rust -%}
|
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
|
2021-09-25 16:03:39 +02:00
|
|
|
{%- endif %}
|
2020-07-30 14:10:22 +02:00
|
|
|
|
2021-09-25 16:03:39 +02:00
|
|
|
{% if zsh.config.android -%}
|
2020-12-26 17:42:09 +01:00
|
|
|
# Android settings
|
2021-04-07 12:48:50 +02:00
|
|
|
if [[ -d ~/Android ]]
|
|
|
|
then
|
2021-07-03 16:02:44 +02:00
|
|
|
export ANDROID_SDK_ROOT=~/Android
|
2021-04-07 12:48:50 +02:00
|
|
|
fi
|
2021-09-25 16:03:39 +02:00
|
|
|
{%- endif %}
|
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-09-25 16:03:39 +02:00
|
|
|
{%- if zsh.config.minimal %}
|
2022-12-06 20:27:14 +01:00
|
|
|
plugins=(common-aliases git)
|
2021-09-25 16:03:39 +02:00
|
|
|
{%- else %}
|
2022-10-01 20:11:24 +02:00
|
|
|
plugins=(common-aliases sudo docker salt git ansible command-not-found systemd python nmap zsh-autosuggestions golang rust kubectl)
|
2021-09-25 16:03:39 +02:00
|
|
|
{%- endif %}
|
2020-10-25 16:38:21 +01:00
|
|
|
|
2021-09-25 16:03:39 +02:00
|
|
|
{#
|
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)
|
2021-09-25 16:03:39 +02:00
|
|
|
#}
|
2020-07-10 00:58:55 +02:00
|
|
|
|
|
|
|
if [[ -f $ZSH/oh-my-zsh.sh ]]
|
|
|
|
then
|
|
|
|
source $ZSH/oh-my-zsh.sh
|
|
|
|
fi
|
|
|
|
|
2022-06-08 23:48:21 +02:00
|
|
|
# Neovim aliases
|
|
|
|
for i in v vi vim
|
|
|
|
do
|
|
|
|
alias $i=nvim
|
|
|
|
done
|
2022-05-14 11:22:52 +02:00
|
|
|
alias weather="curl -s wttr.in/caen"
|
|
|
|
|
2020-07-10 00:58:55 +02:00
|
|
|
# Misc settings
|
|
|
|
bindkey -e
|
2021-08-19 21:15:24 +02:00
|
|
|
unsetopt share_history
|