From 3906f698e7cd110905083e8ecee18adf583ef854 Mon Sep 17 00:00:00 2001 From: Elijah Lazkani Date: Sat, 14 Jan 2017 14:14:44 -0500 Subject: [PATCH] Adding a bashrc configuration, will populate it later. --- salty/base/zsh/files/bashconfig | 11 +++++++++++ salty/base/zsh/init.sls | 12 ++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 salty/base/zsh/files/bashconfig diff --git a/salty/base/zsh/files/bashconfig b/salty/base/zsh/files/bashconfig new file mode 100644 index 0000000..9bd7189 --- /dev/null +++ b/salty/base/zsh/files/bashconfig @@ -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 -%} \ No newline at end of file diff --git a/salty/base/zsh/init.sls b/salty/base/zsh/init.sls index 82e6456..597b9ea 100644 --- a/salty/base/zsh/init.sls +++ b/salty/base/zsh/init.sls @@ -26,7 +26,6 @@ oh-my-zshell: user.present: - shell: /bin/zsh - zsh-config: file.managed: - name: {{ grains.homedir }}/.zshrc @@ -34,4 +33,13 @@ zsh-config: - user: {{ grains.user }} - group: {{ grains.user }} - template: jinja - - force: True \ No newline at end of file + - 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