Skip to content

Commit 6065692

Browse files
committed
Install links via shell script
1 parent 6604bf1 commit 6065692

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

scripts/install.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env zsh
2+
3+
if [ $# -lt 1 ] || [ ! -d $1 ]; then
4+
echo "Usage: install.sh <repo_root>"
5+
exit 1
6+
fi
7+
8+
for file in $1/home/*(D); do
9+
ln -sF $file ~
10+
done
11+
12+
for file in $1/private/home/**/*(.D); do
13+
ln -sF $file $(echo $file | sed "s|$1/private/home|$HOME|")
14+
done

0 commit comments

Comments
 (0)