commit aaefb10982eac94fa48ca21120169c8d1807dcd5
parent 3afcfe508f7eed68ffcd3f2d6726e1aa486dafc7
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date: Sat, 16 Oct 2021 01:10:59 -0700
Change rc(1) $dirlog and speed up cdl function
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/local/rc/lib/profile b/local/rc/lib/profile
@@ -31,7 +31,7 @@ MANPREFIX = /usr/local/man/
PREFIX = /usr/local/
# Directory Changing
-dirlog = $home/log/dirlog
+dirlog = $home/log/dir
fn cd {
if (builtin cd $*) {
@@ -42,7 +42,7 @@ fn cd {
status = ''
}
}
-fn cdl { uniq <$dirlog | stest -d }
+fn cdl { uniq <$dirlog }
fn cdr { cd `{ cdl | egrep $* | tail -1 } }
fn cds { cd `{ pwd | sed s.$1.$2.g } }
fn cdp { cd `{ cdl | fgrep -vx `{ pwd } | tail -1 } }