config

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

commit 379786ebf8c7f72e211b35110cf60df8d9da3a88
parent 08f4645fa6815cefd8ac77aaa808a544097ce79a
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Thu, 19 Aug 2021 00:04:32 -0700

Fix and improve rc profile

- Don't expand XDG_DATA_HOME when testing for it's existence
- Add 'c' prefix to directory functions to fix conflict with dl script

Diffstat:
Mlocal/rc/lib/profile | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/local/rc/lib/profile b/local/rc/lib/profile @@ -2,15 +2,15 @@ flag -s -if (! printenv $XDG_DATA_HOME >/dev/null) +if (! printenv XDG_DATA_HOME >/dev/null) XDG_DATA_HOME = $home/.local/share wdlog = $XDG_DATA_HOME/cd # cd -fn cd { builtin cd $* && pwd >> "$wdlog" } -fn dl { uniq <"$wdlog" | stest -d } -fn dr { cd `{ dl | egrep $* | tail -1 } } -fn ds { cd `{ pwd | sed s.$1.$2.g } } +fn cd { builtin cd $* && pwd >>$wdlog } +fn cdl { uniq <$wdlog | stest -d } +fn cdr { cd `{ cdl | egrep $* | tail -1 } } +fn cds { cd `{ pwd | sed s.$1.$2.g } } # history fn hl { " '*' }