commit d8c36eb224021bf18de9c5661d58bb0a470bca42 parent f1de4051bc110fe09aa488c4d2cf7da646194d06 Author: Jacob R. Edwards <n/a> Date: Sun, 27 Feb 2022 21:11:03 -0800 Cleanup rc(1) profile Remove dirlog related functions among others. Diffstat:
| M | local/rc/lib/profile | | | 17 | ----------------- |
1 file changed, 0 insertions(+), 17 deletions(-)
diff --git a/local/rc/lib/profile b/local/rc/lib/profile @@ -14,7 +14,6 @@ font = $PLAN9/font/fixed/unicode.7x13.font prompt = ('; ' ' ') ifs = ' ' -dirlog = $home/sys/log/dir # Program Preferences BROWSER = glinks @@ -35,15 +34,6 @@ MAKEFLAGS = -e MANPREFIX = /usr/local/man PREFIX = /usr/local -# Working Directory Functions -fn cdl { - if (cd $* && flag i) - pwd >> $dirlog -} -fn cdr { cdl ''^`{ egrep $* < $dirlog | tail -1 } } -fn cds { cdl ''^`{ pwd | sed s.$1.$2.g } } -fn cdp { cdl ''^`{ fgrep -vx `{ pwd } < $dirlog | tail -1 } } - # OpenBSD Package Management if (~ `{ uname } OpenBSD) { fn pa { doas pkg_add -x $* } @@ -68,13 +58,6 @@ fn rm { 9 rm $* } # Etc. fn fns { whatis `{ printenv | awk -F '[#=]' '/^fn#/ { print $2 }' } } fn ths { 9 dict -d roget $* } -fn see { - if (test -d $1) - ls $1 - if not - cat $1 -} -fn mkchdir { mkdir $* && cd $*($#*) } # Run Daemons with a Full Environment {