🐛 Fix symlinking including .git directory

This commit is contained in:
punkfairie 2024-02-10 13:10:41 -08:00
parent a77bb7f383
commit 9aa9620623
No known key found for this signature in database
GPG key ID: 0858B0F48128A755

View file

@ -131,7 +131,7 @@ function install_dotfiles
set -l path (string replace -a '/' '\/' "$DOT")
set -l regex (string join '' '^' "$path" '\/[a-zA-Z]+\/(.+)\.(sym|hard)link$')
for src in (find -H "$DOT" -name "*.symlink" -or -name "*.hardlink" -not -path ".git/*")
for src in (find -H "$DOT" -not \( -path "$DOT/.git/*" -prune \) -name "*.symlink" -or -name "*.hardlink")
link_file $src "$HOME/$(string replace -r $regex '$1' "$src")"
end
end
@ -170,7 +170,9 @@ end
# Ensure npm is available.
if $run_installers
"$DOT/node/volta.fish"
end
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -