From 9e9d2cc19a0586d87f6a0a78cf681f3e255c16ad Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Sat, 14 Aug 2021 18:01:30 +0900 Subject: [PATCH] create install script --- README.md | 7 ++++--- install | 12 ++++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100755 install diff --git a/README.md b/README.md index 7f5f8f1..a6c5000 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -> 膨大な知識の電波は すべてを知ってるわけじゃないから\ -> 新しいことまだ見つけられる 宇宙の果てに広がってゆける +# Dotfiles -MOSAIC.WAV「電気の恋人」 +```sh +install +``` diff --git a/install b/install new file mode 100755 index 0000000..f040ad0 --- /dev/null +++ b/install @@ -0,0 +1,12 @@ +#!/bin/bash +set -euo pipefail + +for dotfile in .*; do + [[ $dotfile =~ ^(\.\.?|\.git)$ ]] && continue + + dotfile=$(realpath "$dotfile") + ( + cd + ln -svf "$dotfile" + ) +done