From c4ea15315f7be8cddc84dbe11f2d05d7f23b2a58 Mon Sep 17 00:00:00 2001 From: Rawley Fowler <75388349+rawleyfowler@users.noreply.github.com> Date: Tue, 31 May 2022 11:04:35 -0600 Subject: [PATCH] Update .zshrc --- zsh/.zshrc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/zsh/.zshrc b/zsh/.zshrc index da34232..eb9d0c3 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -2,6 +2,17 @@ # Rawley Fowler's .zshrc, last edited May 2022 export ZSH="$HOME/.oh-my-zsh" +# Configure brew on startup of new machine +if ! type "brew" > /dev/null; then + exec /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" +fi + +# Configure git, on startup of new machine +if ! type "git" > /dev/null; then + exec brew install git + git config --global core.excludesfile ~/.gitignore_global +fi + #Oh my zsh ZSH_THEME="afowler" plugins=(git) @@ -11,3 +22,5 @@ source $ZSH/oh-my-zsh.sh export PATH=$PATH:$HOME/.emacs.d/bin [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh + +eval "$(direnv hook zsh)"