From 966078bac05139003ac2be032c185020895fb77a Mon Sep 17 00:00:00 2001 From: Mathias Magnusson Date: Tue, 1 Jul 2025 20:13:17 +0200 Subject: make symlinks also automatically be symlinked to ~/ --- init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init') diff --git a/init b/init index a1bedac..13fb9da 100755 --- a/init +++ b/init @@ -5,7 +5,7 @@ set homedirs dot-config dot-local-bin for dir in $homedirs set -l target_base $HOME/(string replace '-' '/' (string replace -r '^dot-' '.' $dir)) - for file in (find $dir -type f) + for file in (find -L $dir -type f) set -l src "$(pwd)/$file" set -l dst (string replace -r "^$dir/" "$target_base/" $file) if [ -L $dst -a "$(readlink $dst)" = $src ] -- cgit v1.2.3