mirror of
https://github.com/kou029w/dotfiles.git
synced 2025-01-19 00:17: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