Adding a bashrc configuration, will populate it later.

This commit is contained in:
Elijah Lazkani 2017-01-14 14:14:44 -05:00
parent 033f230a9d
commit 3906f698e7
2 changed files with 21 additions and 2 deletions

View 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 -%}

View file

@ -26,7 +26,6 @@ oh-my-zshell:
user.present:
- shell: /bin/zsh
zsh-config:
file.managed:
- name: {{ grains.homedir }}/.zshrc
@ -35,3 +34,12 @@ zsh-config:
- group: {{ grains.user }}
- template: jinja
- 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