1
0
Fork 0
mirror of https://github.com/kou029w/dotfiles.git synced 2025-01-31 06:18:00 +00:00

use local

This commit is contained in:
Nebel 2022-04-25 19:28:26 +09:00
parent efcd77160c
commit 0b41faff6b

21
install
View file

@ -2,12 +2,17 @@
set -euo pipefail set -euo pipefail
cd -- "$(dirname -- "$0")" cd -- "$(dirname -- "$0")"
for dotfile in .*; do function main() {
[[ $dotfile =~ ^(\.\.?|\.git)$ ]] && continue local dotfile
for dotfile in .*; do
[[ $dotfile =~ ^(\.\.?|\.git)$ ]] && continue
dotfile=$(realpath "$dotfile") dotfile=$(realpath "$dotfile")
( (
cd cd
ln -svf "$dotfile" . ln -svf "$dotfile" .
) )
done done
}
main