dot

packages and services management
Log | Files | Refs | README

commit 94a62723b001fd2c847b055575f139270ce26717
parent 860a537df2d246036f8bad57add7d5157fa9ecf3
Author: Josuah Demangeon <mail@josuah.net>
Date:   Fri, 16 Feb 2018 10:47:25 +0100

cfg -> etc

Diffstat:
Mbin/pack | 4++--
Mbin/run | 4++--
Mbin/tpl | 4++--
Mdot/profile | 5++---
4 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/bin/pack b/bin/pack @@ -1,6 +1,6 @@ #!/bin/sh -e -export PKG="$CFG/pack/$2" +export PKG="$ETC/pack/$2" export SRC="$SYS/src/$2" export OPT="$SYS/opt/$2" export CFLAGS="-I'$SYS/include'" @@ -60,6 +60,6 @@ case "$1" in (*) echo 'usage: pack tar | git | get | build | add | del <package>' echo '' - COLUMNS=80 ls "$CFG/pack" + COLUMNS=80 ls "$ETC/pack" ;; esac diff --git a/bin/run b/bin/run @@ -2,6 +2,6 @@ mkdir -p "$LOG" -[ "$#" -ge 1 ] || exec ls "$CFG/run" +[ "$#" -ge 1 ] || exec ls "$ETC/run" -exec "$CFG/run/$@" +exec "$ETC/run/$@" diff --git a/bin/tpl b/bin/tpl @@ -1,5 +1,5 @@ #!/bin/sh -[ "$#" -ge 1 ] || exec ls -R "$CFG/tpl" +[ "$#" -ge 1 ] || exec ls -R "$ETC/tpl" -exec cat "$CFG/tpl/$1" +exec cat "$ETC/tpl/$1" diff --git a/dot/profile b/dot/profile @@ -15,7 +15,6 @@ export LC_MESSAGES='en_US.UTF-8' export LC_NUMERIC='en_US.UTF-8' export LC_TIME='en_US.UTF-8' -export CFG="${HOME}/cfg" # configuration source export ETC="${HOME}/.config" # /etc installed configuration export SYS="${HOME}/.local" # /usr/local package installation path export VAR="${HOME}/.cache" # /var generated data @@ -25,8 +24,8 @@ export LOG="${VAR}/log" # /var/log log files export MAIL="${VAR}/mail/mbox" export PLAN9="${SYS}/src/plan9" -export PATH="${CFG}/bin:${HOME}/.local/bin:${PATH}:${PLAN9}/bin" -export MANPATH="${CFG}/man:/usr/share/man:/usr/local/man" +export PATH="${HOME}/etc/bin:${SYS}/bin:${PATH}:${PLAN9}/bin" +export MANPATH="${HOME}/etc/man:/usr/share/man:/usr/local/man" export MANPATH="${SYS}/share/man:${MANPATH}:${PLAN9}/man" export C_INCLUDE_PATH="${SYS}/include" export LIBRARY_PATH="${SYS}/lib:/usr/local/lib/inotify"