This commit is contained in:
parent
b044e3adbf
commit
37e2dfc3a1
@ -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
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
include:
|
include:
|
||||||
- users
|
- users
|
||||||
- .pkg
|
- .install
|
||||||
- .config
|
- .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 }}:
|
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 %}
|
||||||
|
@ -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
|
@ -1,3 +0,0 @@
|
|||||||
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
|
|
||||||
|
|
||||||
source /etc/zsh/zprofile
|
|
Loading…
Reference in New Issue
Block a user