From 1ddfd9ba56511a4136dfe83e1f581ac52c79c0e9 Mon Sep 17 00:00:00 2001 From: ensa <@> Date: Sun, 6 Aug 2023 16:37:30 -0700 Subject: these commit titles don't have meaning anymore DEPENDENCIES.md: nixed. good riddance. i have no reason to think it was helpful and was a nightmare to update bin/ fcard: some tab changes. -z still broken fl: removed unnecessary lines from before flc's existence. flc: inherited IFS because of dmenu crap. tr -d to prevent pasting newlines. op: changed text/* to spawn a terminal. often op is invoked outside the terminal. shenv: looks at HOME_ETC for uniformity etc/ X11/xprofile: line for updating sfeed feeds aliasrc: colorizing lr ksh/kshrc: MANPATH extended to accommodate for user-specific packages, e.g python call_it_a_day updates packages and cleans the system, tracks how long that took mpv/mpv.conf: self-explanatory newsboat: not used anymore sfeedrc: new rss config, needs feed urls shrc: making room for sfeed, self-explanatory yt-dlp: mostly self-explanatory renaming new config for playlists, separate because you seemingly can't use directory markers in text substitution --- etc/ksh/kshrc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'etc/ksh/kshrc') diff --git a/etc/ksh/kshrc b/etc/ksh/kshrc index 28b3c0c..3ab924b 100644 --- a/etc/ksh/kshrc +++ b/etc/ksh/kshrc @@ -22,9 +22,9 @@ export PF_INFO="ascii title os host shell editor wm pkgs palette" # fix manpath so local man pages work # crude *bsd detection if [[ -d /usr/X11R6 ]]; then -export MANPATH="/usr/share/man:/usr/X11R6/man:/usr/local/man:$HOME_DATA/man" +export MANPATH="/usr/share/man:/usr/X11R6/man:/usr/local/man:$HOME_DATA/man:$HOME_EXT_DATA/man" else -export MANPATH="/usr/share/man:/usr/local/share/man:$HOME_DATA/man" +export MANPATH="/usr/share/man:/usr/local/share/man:$HOME_DATA/man:$HOME_EXT_DATA/man" fi set -o vi @@ -34,3 +34,10 @@ set -o vi [[ -f "$HOME_ETC/aliasrc" ]] && . "$HOME_ETC/aliasrc" [[ -f "$KSHCONFIG/completions.ksh" ]] && . "$KSHCONFIG/completions.ksh" [[ -f "$KSHCONFIG/prompt.ksh" ]] && . "$KSHCONFIG/prompt.ksh" + +call_it_a_day() { + date +%s > /tmp/start-update.time + doas sh -c 'pkg_add -Iu; pkg_delete -Ia' + echo "update took $(($(date +%s)-$(< /tmp/start-update.time))) seconds" > $HOME_LOG/call-it-a-day.log + doas poweroff +} -- cgit 1.4.1-2-gfad0