Skip to content

Commit

Permalink
Merge pull request #36 from jotyGill/develop
Browse files Browse the repository at this point in the history
Fix custom config file import issue
  • Loading branch information
jotyGill authored Oct 5, 2024
2 parents 578566e + 4e4626b commit 9c8b666
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,11 @@ source "$HOME/.config/ezsh/ezshrc.zsh"
# Place all of your personal configurations over there
ZSH_CONFIGS_DIR="$HOME/.config/ezsh/zshrc"

if [ "$(ls -A $ZSH_CONFIGS_DIR)" ]; then
for file in "$ZSH_CONFIGS_DIR"/* "$ZSH_CONFIGS_DIR"/.*; do
# Exclude '.' and '..' from being sourced
if [ -f "$file" ]; then
source "$file"
fi
done
fi
for file in "$ZSH_CONFIGS_DIR"/*(DN); do
if [ -f "$file" ]; then
source "$file"
fi
done

# Now source oh-my-zsh.sh so that any plugins added in ~/.config/ezsh/zshrc/* files also get loaded
source $ZSH/oh-my-zsh.sh
Expand Down

0 comments on commit 9c8b666

Please sign in to comment.