config

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

commit 617b9850675904574d52ee2ff0fedd7e0cd22d8b
parent a0a2763357ca552c27213e3dd7ead1635fda6d95
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Thu,  2 Sep 2021 20:30:04 -0700

Update rc profile

- Remove $home/local/bin and /etc/games from path
- Move $PLAN9/bin before directories under /usr/ in path
- Remove, rename, and revise functions

Diffstat:
Mlocal/rc/lib/profile | 20+++++++-------------
1 file changed, 7 insertions(+), 13 deletions(-)

diff --git a/local/rc/lib/profile b/local/rc/lib/profile @@ -1,14 +1,13 @@ # rc profile # plan9[port] -PLAN9 = /usr/local/plan9/ +PLAN9 = /usr/local/plan9 font = $PLAN9/font/misc/unicode.6x13.font # rc -path = (. $home/bin $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) +path = (. $home/bin /bin /sbin $PLAN9/bin /usr/^(bin sbin) /usr/^(local X11R6)^/^(bin sbin)) prompt = ('; ' '') -history = $home/lib/history-`{ date +%Y-%m } # Not in standard rc; costom patch. +history = $home/lib/history-`{ date +%Y-%m } # Means nothing to stock rc ifs = ' ' @@ -39,26 +38,23 @@ fn cdl { uniq <$dirlog | stest -d } fn cdr { cd `{ cdl | egrep $* | tail -1 } } fn cds { cd `{ pwd | sed s.$1.$2.g } } -# history -fn hl { " '*' } -fn hs { " $* } +# history search +fn hs { grep $* $history } # OpenBSD package management fn pa { doas pkg_add $* } fn pd { doas pkg_delete $* } -fn pdd { doas sh -c 'pkg_delete "$@" && pkg_delete -a' pdd $* } +fn pdd { doas rc -c 'pd $* && pd -a' $* } fn pdp { pkg_depend $* } fn pi { pkg_info -q $* } fn plc { pkg_locate $* } -fn pli { portslist $* } fn pr { pkgroot $* } fn pt { pkgtree $* } -fn pu { doas pkg_add -u $* } # simple fn curl { builtin curl -SsL $* } fn dsu { doas su $* } -fn fnl { printenv | grep '^fn#' | cut -d '#' -f2- } +fn fns { printenv | grep '^fn#' | cut -d '#' -f2- } fn ls { 9 ls $* } # short @@ -67,5 +63,3 @@ fn d { doas $* } fn e { egrep $* } fn f { $EDITOR $* } fn g { git $* } -fn l { $PAGER $* } -fn t { tmux $* }