From 08069b47efee1df97f0e2041fec1415c6bb9ab0f Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Mon, 28 Mar 2022 15:47:42 -0400 Subject: [PATCH] Improve homebrew + typewritten theme handling in zsh config --- zsh/.zprofile | 3 +++ zsh/.zshrc | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/zsh/.zprofile b/zsh/.zprofile index 62c06b0..fa94f34 100644 --- a/zsh/.zprofile +++ b/zsh/.zprofile @@ -1,3 +1,6 @@ +if [[ -f "/opt/homebrew/bin/brew" ]]; then + eval "$(/opt/homebrew/bin/brew shellenv)" +fi ulimit -n 10240 export PATH="$PATH:/Users/jdormit/.local/bin" eval "$(pyenv init --path)" diff --git a/zsh/.zshrc b/zsh/.zshrc index 807998d..9826d96 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -4,7 +4,15 @@ # Path to your oh-my-zsh installation. export ZSH="$HOME/.oh-my-zsh" -ZSH_THEME="typewritten" +fpath=($fpath "$HOME/.zfunctions") +if [ -e "$HOME/.zfunctions/prompt_typewritten_setup" ]; then + export ZSH_THEME="" + # Set typewritten ZSH as a prompt + autoload -U promptinit; promptinit + prompt typewritten +else + export ZSH_THEME="robbyrussell" +fi # Set list of themes to pick from when loading at random # Setting this variable when ZSH_THEME=random will cause zsh to load