Add subdirectories for macbook and tongfang with config (#4)

This commit is contained in:
Bart van der Braak 2024-10-16 22:27:09 +02:00 committed by GitHub
parent b743abcde5
commit 10a876fcc4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 117 additions and 0 deletions

9
tongfang/symlink.sh Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
if cp --version &>/dev/null; then
dotfiles_home="${1:-$(dirname "$(realpath "$0")")}"
cp -rsf "$dotfiles_home"/. $HOME
echo "dotfiles symlinks recursively copied from $dotfiles_home to $HOME."
else
echo "GNU cp required."
fi