2021-08-14 18:01:30 +09:00
|
|
|
#!/bin/bash
|
|
|
|
set -euo pipefail
|
2022-04-22 19:47:02 +09:00
|
|
|
cd -- "$(dirname -- "$0")"
|
2021-08-14 18:01:30 +09:00
|
|
|
|
|
|
|
for dotfile in .*; do
|
|
|
|
[[ $dotfile =~ ^(\.\.?|\.git)$ ]] && continue
|
|
|
|
|
|
|
|
dotfile=$(realpath "$dotfile")
|
|
|
|
(
|
|
|
|
cd
|
|
|
|
ln -svf "$dotfile"
|
|
|
|
)
|
|
|
|
done
|