config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit 99f45188a18b46a7cdfd1057dbe7e9f484d43440
parent 4364c1c513830d4edd72d2aff8fedff28bb72e64
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Wed,  8 Sep 2021 00:17:07 -0700

Put logs into the log directory in the user's home directory

Putting them in lib doesn't make sense and I'm avoiding the use of
XDG directories because they are cumbersome as it's difficult to
ensure they are set before they are used.

Diffstat:
Mlocal/rc/lib/profile | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/local/rc/lib/profile b/local/rc/lib/profile @@ -9,7 +9,7 @@ ifs = ' ' # History (not in standard rc) -history = $home/lib/history-`{ date +%Y-%m } +history = $home/log/rc-`{ date +%Y-%m } # Program Preferences BROWSER = dillo @@ -31,7 +31,7 @@ MANPREFIX = /usr/local/man/ PREFIX = /usr/local/ # Directory Changing -dirlog = $XDG_DATA_HOME/cd +dirlog = $home/log/dirlog fn cd { if (builtin cd $*) {