dot

packages and services management
Log | Files | Refs | README

commit 3dbfa6f733ec88e47dbcbe1a9981354fa3fe4fdf
parent dc9ad552d0fa8fdeabf9afa992276bb389cfb0ed
Author: Josuah <mail@josuah.net>
Date:   Wed, 13 Dec 2017 00:12:10 +0100

only one dotfile subdirectory

Diffstat:
Mbin/etc | 18++++--------------
Dconfig/enchive/enchive.pub | 2--
Dconfig/enchive/enchive.sec | 2--
Adot/config/enchive/enchive.pub | 2++
Adot/config/enchive/enchive.sec | 2++
Rconfig/git/config -> dot/config/git/config | 0
Rconfig/twt -> dot/config/twt | 0
7 files changed, 8 insertions(+), 18 deletions(-)

diff --git a/bin/etc b/bin/etc @@ -7,10 +7,6 @@ case $1 in find * -type d -exec mkdir -p "$HOME/.{}" ';' find * ! -type d -exec ln -fs "$ETC/dot/{}" "$HOME/.{}" ';' find -L "$HOME" -maxdepth 3 -type l -exec rm {} + - cd "$ETC/config" || exit 1 - find * -type d -exec mkdir -p "$HOME/.config/{}" ';' - find * ! -type d -exec ln -fs "$ETC/config/{}" "$HOME/.config/{}" ';' - find -L "$HOME" -maxdepth 3 -type l -exec rm {} + ;; (mkdir) mkdir -p "$HOME/git" @@ -24,29 +20,23 @@ case $1 in mkdir -p "$HOME/var/run" mkdir -p "$HOME/var/tox" ;; -(git) - git clone josuah@git.josuah.net:srv/git/srv.git "$HOME/srv" - mkdir -p "$HOME/git/josuah.net" - cd "$HOME/git/josuah.net" || exit 1 - git clone josuah@git.josuah.net:srv/git/notes.git +(srv) + git clone josuah@josuah.net:srv/git/srv.git "$HOME/srv" + cd srv && make ;; (setup) mkdir -p "$HOME/.config" - [ -f "$ETC/cron/$2" ] && cat "$ETC/cron/$2" >> "$HOME/.config/cron" && sort -uo "$HOME/.config/cron" "$HOME/.config/cron" - [ -f "$ETC/inet/$2" ] && cat "$ETC/inet/$2" >> "$HOME/.config/inet" && sort -uo "$HOME/.config/inet" "$HOME/.config/inet" - [ -d "$ETC/skel/$2" ] && mkdir -p "/etc/$2" && cp -ri "$ETC/skel/$2"/* "/etc/$2" - [ -f "$ETC/skel/$2" ] && cp -i "$ETC/skel/$2" "/etc/$2" ;; (fonts) fc-cache "$ETC/fonts" ;; (*) - printf 'usage: etc [dot | mkdir | setup service | fonts]\n' + printf 'usage: etc [dot | srv | setup service | fonts]\n' esac diff --git a/config/enchive/enchive.pub b/config/enchive/enchive.pub @@ -1 +0,0 @@ -/mnt/key/enchive.pub- \ No newline at end of file diff --git a/config/enchive/enchive.sec b/config/enchive/enchive.sec @@ -1 +0,0 @@ -/mnt/key/enchive.sec- \ No newline at end of file diff --git a/dot/config/enchive/enchive.pub b/dot/config/enchive/enchive.pub @@ -0,0 +1 @@ +/mnt/key/enchive.pub+ \ No newline at end of file diff --git a/dot/config/enchive/enchive.sec b/dot/config/enchive/enchive.sec @@ -0,0 +1 @@ +/mnt/key/enchive.sec+ \ No newline at end of file diff --git a/config/git/config b/dot/config/git/config diff --git a/config/twt b/dot/config/twt