From 24290a59dd87aec2289c2e0df6132459f1a66ff1 Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Wed, 7 Dec 2022 18:26:23 -0800 Subject: [PATCH] Add common .zshenv and .zprofile --- zsh/.config/zsh/.zshrc | 7 +++---- zsh/.zprofile | 0 zsh/.zshenv | 0 3 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 zsh/.zprofile create mode 100644 zsh/.zshenv diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index afc7ca6..8ff0410 100755 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -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 diff --git a/zsh/.zprofile b/zsh/.zprofile new file mode 100644 index 0000000..e69de29 diff --git a/zsh/.zshenv b/zsh/.zshenv new file mode 100644 index 0000000..e69de29