This commit is contained in:
parent
b044e3adbf
commit
37e2dfc3a1
@ -15,13 +15,13 @@ 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
|
||||
- template: jinja
|
||||
- require:
|
||||
- pkg: zsh-pkg
|
||||
- pkg: zsh-pkg
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
include:
|
||||
- users
|
||||
- .pkg
|
||||
- .install
|
||||
- .config
|
||||
- .users
|
||||
- .users
|
||||
|
6
states/zsh/install.sls
Normal file
6
states/zsh/install.sls
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
zsh-pkg:
|
||||
pkg.installed:
|
||||
- pkgs:
|
||||
- zsh
|
||||
- zsh-syntax-highlighting
|
@ -1,6 +0,0 @@
|
||||
---
|
||||
zsh-pkg:
|
||||
pkg.latest:
|
||||
- pkgs:
|
||||
- zsh
|
||||
- zsh-syntax-highlighting
|
@ -5,13 +5,12 @@
|
||||
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 }}
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
{%- endfor %}
|
||||
|
@ -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
|
@ -1,3 +0,0 @@
|
||||
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
|
||||
|
||||
source /etc/zsh/zprofile
|
Loading…
Reference in New Issue
Block a user