Adding a bashrc configuration, will populate it later.
This commit is contained in:
parent
033f230a9d
commit
3906f698e7
2 changed files with 21 additions and 2 deletions
11
salty/base/zsh/files/bashconfig
Normal file
11
salty/base/zsh/files/bashconfig
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
{%- if grains['kernel'] == 'Darwin' -%}
|
||||||
|
update() {
|
||||||
|
brew update &&\
|
||||||
|
brew upgrade &&\
|
||||||
|
brew cask update &&\
|
||||||
|
apm update --confirm false &&\
|
||||||
|
pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U
|
||||||
|
}
|
||||||
|
{%- endif -%}
|
|
@ -26,7 +26,6 @@ oh-my-zshell:
|
||||||
user.present:
|
user.present:
|
||||||
- shell: /bin/zsh
|
- shell: /bin/zsh
|
||||||
|
|
||||||
|
|
||||||
zsh-config:
|
zsh-config:
|
||||||
file.managed:
|
file.managed:
|
||||||
- name: {{ grains.homedir }}/.zshrc
|
- name: {{ grains.homedir }}/.zshrc
|
||||||
|
@ -34,4 +33,13 @@ zsh-config:
|
||||||
- user: {{ grains.user }}
|
- user: {{ grains.user }}
|
||||||
- group: {{ grains.user }}
|
- group: {{ grains.user }}
|
||||||
- template: jinja
|
- template: jinja
|
||||||
- force: True
|
- force: True
|
||||||
|
|
||||||
|
bash-config:
|
||||||
|
file.managed:
|
||||||
|
- name: {{ grains.homedir }}/.bashrc
|
||||||
|
- source: salt:///zsh/files/bashconfig
|
||||||
|
- user: {{ grains.user }}
|
||||||
|
- group: {{ grains.user }}
|
||||||
|
- template: jinja
|
||||||
|
- force: True
|
||||||
|
|
Loading…
Reference in a new issue