mirror of
https://github.com/kou029w/dotfiles.git
synced 2025-01-18 16:07:59 +00:00
create install script
This commit is contained in:
parent
89e67bf38f
commit
9e9d2cc19a
2 changed files with 16 additions and 3 deletions
|
@ -1,4 +1,5 @@
|
|||
> 膨大な知識の電波は すべてを知ってるわけじゃないから\
|
||||
> 新しいことまだ見つけられる 宇宙の果てに広がってゆける
|
||||
# Dotfiles
|
||||
|
||||
MOSAIC.WAV「電気の恋人」
|
||||
```sh
|
||||
install
|
||||
```
|
||||
|
|
12
install
Executable file
12
install
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
for dotfile in .*; do
|
||||
[[ $dotfile =~ ^(\.\.?|\.git)$ ]] && continue
|
||||
|
||||
dotfile=$(realpath "$dotfile")
|
||||
(
|
||||
cd
|
||||
ln -svf "$dotfile"
|
||||
)
|
||||
done
|
Loading…
Add table
Reference in a new issue