Improve homebrew + typewritten theme handling in zsh config

This commit is contained in:
Jeremy Dormitzer 2022-03-28 15:47:42 -04:00
parent c0bc87866c
commit 08069b47ef
2 changed files with 12 additions and 1 deletions

View File

@ -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)"

View File

@ -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