config

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

commit ec32445d6eec5e0e93bebb810a24613ed2403ac9
parent d402348dd86c042829ce1d6040190c585a79940b
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Tue, 29 Dec 2020 12:42:10 -0800

Cleanup and add XDG_CACHE_HOME definition to ~/.profile

XDG_CACHE_HOME now points to ~/.cache.

Insert a trailing slash in directory variables for OpenBSD's ksh(1)
path completion, if there is a slash<tab> a file listing is shown
otherwise a space is inserted.

Simplify PATH definition by removing the unused subdirectory support
for ~/.local/bin and simply using `:` as a terminator instead of
translating spaces to it.

Diffstat:
Mmodules/profile/.profile | 32++++++++++++--------------------
1 file changed, 12 insertions(+), 20 deletions(-)

diff --git a/modules/profile/.profile b/modules/profile/.profile @@ -1,40 +1,32 @@ # unix profile -# programs: +# programs export BROWSER=vimb export EDITOR=nvi export LOCKER=slock export PAGER=less - -# Absolute path used for nvi(1) as it uses exevl(3) export SHELL=/bin/ksh export TERMINAL=st -# locations: -export XDG_CONFIG_HOME="$HOME/.config" - +# locations +export XDG_CONFIG_HOME="$HOME/.config/" +export XDG_CACHE_HOME="$HOME/.cache/" export HISTBASE="$HOME/.local/var" export INPUTRC="$XDG_CONFIG_HOME/readline" -export PASSWORD_STORE_DIR="$HOME/.local/var/pass" - -export DICT_DIR="$HOME/.local/share/wdef" -export FEED_DIR="$HOME/.local/var/rss" +export PASSWORD_STORE_DIR="$HOME/.local/var/pass/" +export DICT_DIR="$HOME/.local/share/wdef/" +export FEED_DIR="$HOME/.local/var/rss/" export PWDLOG="$HOME/.local/var/log/pwd" -export SCREENSHOT_DIR="$HOME/own/image/screenshots" +export SCREENSHOT_DIR="$HOME/own/image/screenshots/" export THESAURUS_DIR="$HOME/.local/share/walt/" -export URL_DIR="$HOME/.local/var/bookmarks" -export WALLPAPER_DIR="$HOME/image/wallpapers" +export URL_DIR="$HOME/.local/var/bookmarks/" +export WALLPAPER_DIR="$HOME/image/wallpapers/" +export PATH="$HOME/.local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin:/usr/games" -# other: +# other export ENV="$XDG_CONFIG_HOME/ksh.kshrc" export LESS="X F M r S W x2 ~ q i b80 h15 z23 j5 x8" export LESSHISTFILE="/dev/null" - -# date and time strftime format strings. export DATE_FMT="%Y.%m.%d" export TIME_FMT="%H.%M" export DATETIME_FMT="$DATE_FMT $TIME_FMT" - -export PATH=$(echo `find $HOME/.local/bin -type d` \ - /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin \ - /usr/X11R6/bin /usr/games | tr ' ' ':')