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,10 +15,10 @@ zsh-autosuggestions-repo:
- require:
- pkg: zsh-pkg
zsh-omz-profile:
zsh-omz-env:
file.managed:
- name: /etc/zsh/zprofile
- source: salt://zsh/zprofile.j2
- name: /etc/zsh/zshenv
- source: salt://zsh/zshenv.j2
- user: root
- group: root
- mode: 0644

View File

@ -1,6 +1,6 @@
---
include:
- users
- .pkg
- .install
- .config
- .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,11 +5,10 @@
zshrc-user-{{ name }}:
file.managed:
- name: {{ user.home }}/.zshrc
- source: salt://zsh/zshrc.j2
- contents: ""
- user: {{ name }}
- group: {{ user.gid }}
- mode: 0644
- template: jinja
- require:
- pkg: zsh-pkg
- user: user-{{ name }}

View File

@ -1,7 +1,7 @@
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
{%- 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
export EDITOR=nvim

View File

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