Skip to content

Commit

Permalink
Support symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielThomas committed Mar 27, 2024
1 parent 8f1c078 commit 8d80484
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/dotfiles.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ function dotfiles_ignored() {

function dotfiles() {
files=("$defaults")
files+=($(find "$HOME" -maxdepth 1 -type d -name '.*dotfiles*' -not -name '.oh-your-dotfiles' | sort))
for file in $(find "$HOME" -maxdepth 1 -name '.*dotfiles*' -not -name '.oh-your-dotfiles' | sort); do
if [ -d "$file" ]; then
files+=($file)
fi
done
echo "${files[@]}"
}

0 comments on commit 8d80484

Please sign in to comment.