mirror of
https://github.com/bartvdbraak/dotfiles.git
synced 2025-04-26 22:21:20 +00:00
9 lines
262 B
Bash
Executable file
9 lines
262 B
Bash
Executable file
#!/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
|