diff options
author | Mathias Magnusson <mathias@magnusson.space> | 2025-07-01 20:13:17 +0200 |
---|---|---|
committer | Mathias Magnusson <mathias@magnusson.space> | 2025-07-01 20:13:17 +0200 |
commit | 966078bac05139003ac2be032c185020895fb77a (patch) | |
tree | 7d93335d3346fe887a07a099c558cd5821e572fc /init | |
parent | fb628935931002ff0e602b4ddb9bd7ec8b8de310 (diff) | |
download | sleipner-966078bac05139003ac2be032c185020895fb77a.tar.gz |
make symlinks also automatically be symlinked to ~/
Diffstat (limited to 'init')
-rwxr-xr-x | init | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 ] |