Add common .zshenv and .zprofile

This commit is contained in:
Eric Torres 2022-12-07 18:26:23 -08:00
parent 023e0fbad7
commit 24290a59dd
3 changed files with 3 additions and 4 deletions

View File

@ -62,13 +62,12 @@ mkcd() {
autoload -Uz mkcd
# Detect OS to autoload uncommon config files
if [[ "$(uname)" == "Darwin" ]]; then
for dotfile in "${XDG_CONFIG_HOME}"/zsh-macos/**/*(.); do
if [[ "$(uname)" =~ "Darwin" ]]; then
for dotfile in "$XDG_CONFIG_HOME"/zsh-macos/*(.); do
source $dotfile
done
test -e /Users/etorres/.config/zsh/.iterm2_shell_integration.zsh && source /Users/etorres/.config/zsh/.iterm2_shell_integration.zsh || true
else
for dotfile in "${XDG_CONFIG_HOME}"/zsh-linux/**/*; do
for dotfile in "$XDG_CONFIG_HOME"/zsh-linux/*(.); do
source $dotfile
done
fi

0
zsh/.zprofile Normal file
View File

0
zsh/.zshenv Normal file
View File