commit 06a5ab6f36a47de32c65ff419d277df40db5e0a6 parent 2ae79a5cab1cbd67d1e246721d85b4c5bcfed333 Author: Jacob R. Edwards <jacobouno@protonmail.com> Date: Sun, 29 Aug 2021 14:51:29 -0700 Record rc each history in different files for each month Diffstat:
| M | local/rc/lib/profile | | | 15 | +++++++-------- |
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/local/rc/lib/profile b/local/rc/lib/profile @@ -1,8 +1,14 @@ # rc profile +PLAN9 = /usr/local/plan9/ +font = $PLAN9/font/misc/unicode.6x13.font +dirlog = $XDG_DATA_HOME/cd + # rc +path = (. $home/local/bin /bin /sbin /usr/bin /usr/sbin /usr/local/bin\ + /usr/local/sbin /usr/X11R6/bin /usr/games $PLAN9/bin $PLAN9/bin/fs) prompt = ('; ' ' ') -history = $home/lib/history # Not in standard rc; costom patch. +history = $home/lib/history-`{ date +%Y-%m } # Not in standard rc; costom patch. ifs = ' ' @@ -26,13 +32,6 @@ MAKEFLAGS = -e MANPREFIX = /usr/local/man/ PREFIX = /usr/local/ -# etc -PLAN9 = /usr/local/plan9/ -path = (. $home/local/bin /bin /sbin /usr/bin /usr/sbin /usr/local/bin\ - /usr/local/sbin /usr/X11R6/bin /usr/games $PLAN9/bin $PLAN9/bin/fs) -font = $PLAN9/font/misc/unicode.6x13.font -dirlog = $XDG_DATA_HOME/cd - # cd fn cd { builtin cd $* && pwd >>$dirlog } fn cdl { uniq <$dirlog | stest -d }