pinch-dotfiles/salty/base/zsh/init.sls

56 lines
1.2 KiB
Text
Raw Normal View History

2017-01-14 18:27:15 +00:00
zsh:
pkg.installed:
- name: zsh
{% if grains['travis'] != True %}
2017-01-14 18:27:15 +00:00
zsh-syntax-highlighting:
pkg.installed:
- name: zsh-syntax-highlighting
{% endif %}
2017-01-14 18:27:15 +00:00
{% 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
2017-01-14 18:27:15 +00:00
- user: {{ grains.user }}
2017-03-07 00:20:33 +00:00
- group: {{ grains.group }}
antigen:
git.latest:
- name: https://github.com/zsh-users/antigen.git
- target: {{ grains.homedir }}/antigen
- user: {{ grains.user }}
- group: {{ grains.group }}
2017-01-14 18:27:15 +00:00
{{ grains.user }}:
user.present:
- shell: /bin/zsh
zsh-config:
file.managed:
- name: {{ grains.homedir }}/.zshrc
- source: salt:///zsh/files/zshconfig
- user: {{ grains.user }}
- group: {{ grains.group }}
2017-01-14 18:27:15 +00:00
- 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