dotfiles/zsh/zprofile

36 lines
819 B
Bash

# vim: filetype=zsh
SCRIPTPATH=$HOME/.config/dotfiles/zsh
ZSH_CACHE_DIR="$HOME/.cache/zsh"
# google cloud sdk
if [[ -a "/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc" ]]; then
source "/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc"
fi
# homebrew
if [[ -a "/opt/homebrew/bin/brew" ]]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
# plugins
mkdir -p "$ZSH_CACHE_DIR"
source "$SCRIPTPATH/dotenv.zsh"
# other files
source "$SCRIPTPATH/functions.zsh"
source "$SCRIPTPATH/aliases.zsh"
# private aliases
if [[ -a "$SCRIPTPATH/private.zsh" ]]; then
source $SCRIPTPATH/private.zsh
fi
# What OS are we running?
if [[ $(uname) == "Darwin" ]]; then
source $SCRIPTPATH/mac.zsh
else
# Assume *nix of some kind
source $SCRIPTPATH/linux.zsh
fi