From c8b9b6cfa55bf734a64efcb755e1203d911bdbff Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 25 Jan 2024 16:40:35 -0800 Subject: print new PWD in pd and cs. * cdlog.sh (cdlog.rot, cdlog.pop): Print new current directory if change successful. --- cdlog.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cdlog.sh b/cdlog.sh index 47566c7..0f0471c 100644 --- a/cdlog.sh +++ b/cdlog.sh @@ -67,6 +67,7 @@ cdlog.rot() ( [1-9] ) if [ $first ] ; then command cd "${d[$n]}" || return + printf "%s\n" "$PWD" else d[$p]=${d[$n]} fi @@ -98,6 +99,8 @@ cdlog.pop() c9= cdlog.nicks + + printf "%s\n" "$PWD" fi } -- cgit v1.2.3