updated zsh state
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paul 2022-12-28 13:43:37 +01:00
parent b044e3adbf
commit 37e2dfc3a1
7 changed files with 15 additions and 19 deletions

View File

@ -15,13 +15,13 @@ zsh-autosuggestions-repo:
- require: - require:
- pkg: zsh-pkg - pkg: zsh-pkg
zsh-omz-profile: zsh-omz-env:
file.managed: file.managed:
- name: /etc/zsh/zprofile - name: /etc/zsh/zshenv
- source: salt://zsh/zprofile.j2 - source: salt://zsh/zshenv.j2
- user: root - user: root
- group: root - group: root
- mode: 0644 - mode: 0644
- template: jinja - template: jinja
- require: - require:
- pkg: zsh-pkg - pkg: zsh-pkg

View File

@ -1,6 +1,6 @@
--- ---
include: include:
- users - users
- .pkg - .install
- .config - .config
- .users - .users

6
states/zsh/install.sls Normal file
View File

@ -0,0 +1,6 @@
---
zsh-pkg:
pkg.installed:
- pkgs:
- zsh
- zsh-syntax-highlighting

View File

@ -1,6 +0,0 @@
---
zsh-pkg:
pkg.latest:
- pkgs:
- zsh
- zsh-syntax-highlighting

View File

@ -5,13 +5,12 @@
zshrc-user-{{ name }}: zshrc-user-{{ name }}:
file.managed: file.managed:
- name: {{ user.home }}/.zshrc - name: {{ user.home }}/.zshrc
- source: salt://zsh/zshrc.j2 - contents: ""
- user: {{ name }} - user: {{ name }}
- group: {{ user.gid }} - group: {{ user.gid }}
- mode: 0644 - mode: 0644
- template: jinja
- require: - require:
- pkg: zsh-pkg - pkg: zsh-pkg
- user: user-{{ name }} - user: user-{{ name }}
{%- endif %} {%- endif %}
{%- endfor %} {%- endfor %}

View File

@ -1,7 +1,7 @@
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }} ## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
{%- from "zsh/map.jinja" import zsh with context %} {%- from "zsh/map.jinja" import zsh with context %}
export PATH=$PATH:/usr/local/bin:/usr/local/bin export PATH=$PATH:/usr/local/bin:/usr/local/sbin
# Main environments variables # Main environments variables
export EDITOR=nvim export EDITOR=nvim

View File

@ -1,3 +0,0 @@
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
source /etc/zsh/zprofile