pinch-dotfiles/salty/base/zsh/init.sls
2017-03-18 03:13:19 -04:00

55 lines
1.2 KiB
Text

zsh:
pkg.installed:
- name: zsh
{% if grains['travis'] != True %}
zsh-syntax-highlighting:
pkg.installed:
- name: zsh-syntax-highlighting
{% endif %}
{% if grains['kernel'] == 'Darwin' %}
zsh-completions:
pkg.installed:
- name: zsh-completions
zsh-history-substring-search:
pkg.installed:
- name: zsh-history-substring-search
{% endif %}
oh-my-zshell:
git.latest:
- name: https://github.com/robbyrussell/oh-my-zsh.git
- target: {{ grains.homedir }}/.oh-my-zsh
- user: {{ grains.user }}
antigen:
git.latest:
- name: https://github.com/zsh-users/antigen.git
- target: {{ grains.homedir }}/antigen
- user: {{ grains.user }}
{% if grains['travis'] != True %}
{{ grains.user }}:
user.present:
- shell: /bin/zsh
{% endif %}
zsh-config:
file.managed:
- name: {{ grains.homedir }}/.zshrc
- source: salt:///zsh/files/zshconfig
- user: {{ grains.user }}
- group: {{ grains.group }}
- template: jinja
- force: True
bash-config:
file.managed:
- name: {{ grains.homedir }}/.bashrc
- source: salt:///zsh/files/bashconfig
- user: {{ grains.user }}
- group: {{ grains.group }}
- template: jinja
- force: True