# vim: filetype=zsh if [[ -d $HOME/.config/dotfiles/zsh ]]; then SCRIPTPATH=$HOME/.config/dotfiles/zsh elif [[ -d $HOME/dotfiles/zsh ]]; then SCRIPTPATH=$HOME/dotfiles/zsh fi ZSH_CACHE_DIR="$HOME/.cache/zsh" # Let GPG know which tty we're using and put in charge of SSH auth export GPG_TTY="$(tty)" export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) gpgconf --launch gpg-agent # 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 # asdf if [[ -d "$HOME/.asdf" ]]; then # export PATH="$HOME/.asdf/shims:$PATH" export ASDF_DATA_DIR=$HOME/.asdf export ASDF_CONFIG_FILE=$HOME/.asdfrc fi # mise if [[ -x "$(command -v mise)" ]]; then export MISE_PYTHON_DEFAULT_PACKAGES_FILE=$XDG_CONFIG_HOME/mise/.default-python-packages eval "$(mise activate zsh)" 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