paulbsd-salt/states/zsh/config.sls
Paul 258958cbd2
All checks were successful
continuous-integration/drone/push Build is passing
updated zsh state
2025-03-15 13:16:09 +01:00

32 lines
791 B
Plaintext

---
{% if not salt.file.file_exists("/usr/share/oh-my-zsh") %}
zsh-omz-repo:
git.latest:
- name: https://github.com/robbyrussell/oh-my-zsh.git
- target: /usr/share/oh-my-zsh
- branch: master
- require:
- pkg: zsh-pkg
{% endif %}
{% if not salt.file.file_exists("/usr/share/oh-my-zsh/plugins/zsh-autosuggestions") %}
zsh-autosuggestions-repo:
git.latest:
- name: https://github.com/zsh-users/zsh-autosuggestions.git
- target: /usr/share/oh-my-zsh/plugins/zsh-autosuggestions
- branch: master
- require:
- pkg: zsh-pkg
{% endif %}
zsh-omz-env:
file.managed:
- name: /etc/zsh/zshenv
- source: salt://zsh/templates/zshenv.j2
- user: root
- group: root
- mode: 0644
- template: jinja
- require:
- pkg: zsh-pkg