commit 6cd2a3cda0dac5dafe98352bc6fcb609c7cd1637
parent 95e2eedad44169af2093992804253083a4a21844
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date: Thu, 2 Sep 2021 10:39:48 -0700
Only record visited directories when interactive
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/local/rc/lib/profile b/local/rc/lib/profile
@@ -34,7 +34,7 @@ PREFIX = /usr/local/
# cd
dirlog = $XDG_DATA_HOME/cd
-fn cd { builtin cd $* && pwd >>$dirlog }
+fn cd { builtin cd $* && flag i && pwd >>$dirlog }
fn cdl { uniq <$dirlog | stest -d }
fn cdr { cd `{ cdl | egrep $* | tail -1 } }
fn cds { cd `{ pwd | sed s.$1.$2.g } }