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