2017-01-14 18:27:15 +00:00
|
|
|
zsh:
|
|
|
|
pkg.installed:
|
|
|
|
- name: zsh
|
|
|
|
|
2017-03-04 16:45:16 +00:00
|
|
|
{% if grains['travis'] != True %}
|
2017-01-14 18:27:15 +00:00
|
|
|
zsh-syntax-highlighting:
|
|
|
|
pkg.installed:
|
|
|
|
- name: zsh-syntax-highlighting
|
2017-03-04 16:45:16 +00:00
|
|
|
{% 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
|
2017-01-14 19:08:49 +00:00
|
|
|
- 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 }}
|
2017-03-02 04:37:37 +00:00
|
|
|
- group: {{ grains.group }}
|
2017-01-14 18:27:15 +00:00
|
|
|
- template: jinja
|
2017-01-14 19:14:44 +00:00
|
|
|
- force: True
|
|
|
|
|
|
|
|
bash-config:
|
|
|
|
file.managed:
|
|
|
|
- name: {{ grains.homedir }}/.bashrc
|
|
|
|
- source: salt:///zsh/files/bashconfig
|
|
|
|
- user: {{ grains.user }}
|
2017-03-02 04:37:37 +00:00
|
|
|
- group: {{ grains.group }}
|
2017-01-14 19:14:44 +00:00
|
|
|
- template: jinja
|
|
|
|
- force: True
|