dot

packages and services management
Log | Files | Refs | README

commit cd173518e2e9328933906e963643e2145772c0e1
parent 2df103ec1400670a854eb17ad7fe7b52716ae676
Author: Josuah Demangeon <mail@josuah.net>
Date:   Thu,  8 Nov 2018 22:07:19 +0100

move conf-* into their own directory

Diffstat:
Dconf-bin | 6------
Dconf-dot | 7-------
Dconf-profile | 5-----
Dconf-s6 | 10----------
Aconf/bin | 6++++++
Rconf-dhparams -> conf/dhparams | 0
Aconf/dot | 7+++++++
Rconf-gpg -> conf/gpg | 0
Aconf/profile | 5+++++
Mdot/config/uri | 1+
Adot/profile | 1+
Mprofile.d/prompt.sh | 9+++++----
12 files changed, 25 insertions(+), 32 deletions(-)

diff --git a/conf-bin b/conf-bin @@ -1,6 +0,0 @@ -#!/bin/sh -e - -cd "$(dirname "$0")" - -mkdir -p "$HOME/.local" -ln -sf "$PWD/bin" "$HOME/.local" diff --git a/conf-dot b/conf-dot @@ -1,7 +0,0 @@ -#!/bin/sh -ex -# install configuration files with symlinks and clone bin - -cd "$(dirname "$0")/dot" -find * -type d -exec sh -c 'mkdir -p "$HOME/.$0"' {} ';' -o \ - -type f -exec sh -c 'ln -sf "$PWD/$0" "$HOME/.$0"' {} ';' -o \ - -type l -exec sh -c 'ln -sf "$(readlink "$0")" "$HOME/.$0"' {} ';' diff --git a/conf-profile b/conf-profile @@ -1,5 +0,0 @@ -#!/bin/sh -e - -cd "$(dirname "$0")" -cp profile /etc -cp -r profile.d /etc diff --git a/conf-s6 b/conf-s6 @@ -1,10 +0,0 @@ -#!/usr/bin/env execlineb -importas 0 0 - -backtick x { dirname $0 } importas -n x x cd $x -if { mkdir -p /etc/s6 /var/s6 /run/s6 } -if { cp -RLf s6/s6-logger /var/s6 } -if { cp -RLf s6/ok-all /etc/s6 } -if { rm -rf /var/s6/s6-logger/fifo } -if { mkfifo /var/s6/s6-logger/fifo } -if -n { test -d /etc/s6/ok-all } cp -r s6/ok-all /etc/s6 diff --git a/conf/bin b/conf/bin @@ -0,0 +1,6 @@ +#!/bin/sh -e + +cd "$(dirname "$0")/.." + +mkdir -p "$HOME/.local" +ln -sf "$PWD/bin" "$HOME/.local" diff --git a/conf-dhparams b/conf/dhparams diff --git a/conf/dot b/conf/dot @@ -0,0 +1,7 @@ +#!/bin/sh -ex +# install configuration files with symlinks and clone bin + +cd "$(dirname "$0")/../dot" +find * -type d -exec sh -c 'mkdir -p "$HOME/.$0"' {} ';' -o \ + -type f -exec sh -c 'ln -sf "$PWD/$0" "$HOME/.$0"' {} ';' -o \ + -type l -exec sh -c 'ln -sf "$(readlink "$0")" "$HOME/.$0"' {} ';' diff --git a/conf-gpg b/conf/gpg diff --git a/conf/profile b/conf/profile @@ -0,0 +1,5 @@ +#!/bin/sh -e + +cd "$(dirname "$0")/.." +cp profile /etc +cp -r profile.d /etc diff --git a/dot/config/uri b/dot/config/uri @@ -67,6 +67,7 @@ https://bsdwiki.reedmedia.net/wiki/networking_qemu_virtual_bsd_systems.html https://bulbizarre.swordarmor.fr/munin/ https://calomel.org https://cb.vu/unixtoolbox.xhtml +https://chat.the-wired.club https://chinaipc.cc https://clique-salope.ovh https://code.dogmap.org diff --git a/dot/profile b/dot/profile @@ -0,0 +1 @@ +. /etc/profile diff --git a/profile.d/prompt.sh b/profile.d/prompt.sh @@ -20,9 +20,10 @@ case "$0" in esac PS1= -PS1=$PS1$vt_bold$(uname -n)$vt_norm -PS1=$PS1'$PWD' -PS1=$PS1$vt_bold'$(id -u | sed -r "s/^0$/#/; s/[^#]+/$/")' -PS1=$PS1$vt_red'${?#0}'$vt_norm' ' +PS1=$PS1$vt_bold$(uname -n) +PS1=$PS1$vt_norm'$PWD' +PS1=$PS1$vt_bold$(id -u | sed -r "s/^0$/#/; s/[^#]+/$/") +PS1=$PS1$vt_red'${?#0}' +PS1=$PS1$vt_norm' ' export PS1