summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorMathias Magnusson <mathias@magnusson.space>2025-07-01 20:13:17 +0200
committerMathias Magnusson <mathias@magnusson.space>2025-07-01 20:13:17 +0200
commit966078bac05139003ac2be032c185020895fb77a (patch)
tree7d93335d3346fe887a07a099c558cd5821e572fc /init
parentfb628935931002ff0e602b4ddb9bd7ec8b8de310 (diff)
downloadsleipner-966078bac05139003ac2be032c185020895fb77a.tar.gz
make symlinks also automatically be symlinked to ~/
Diffstat (limited to 'init')
-rwxr-xr-xinit2
1 files changed, 1 insertions, 1 deletions
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 ]