mirror of
https://github.com/kou029w/dotfiles.git
synced 2025-02-07 09:28:39 +00:00
use local
This commit is contained in:
parent
efcd77160c
commit
0b41faff6b
1 changed files with 13 additions and 8 deletions
5
install
5
install
|
@ -2,6 +2,8 @@
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
cd -- "$(dirname -- "$0")"
|
cd -- "$(dirname -- "$0")"
|
||||||
|
|
||||||
|
function main() {
|
||||||
|
local dotfile
|
||||||
for dotfile in .*; do
|
for dotfile in .*; do
|
||||||
[[ $dotfile =~ ^(\.\.?|\.git)$ ]] && continue
|
[[ $dotfile =~ ^(\.\.?|\.git)$ ]] && continue
|
||||||
|
|
||||||
|
@ -11,3 +13,6 @@ for dotfile in .*; do
|
||||||
ln -svf "$dotfile" .
|
ln -svf "$dotfile" .
|
||||||
)
|
)
|
||||||
done
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
main
|
||||||
|
|
Loading…
Add table
Reference in a new issue