From b769c51e52bb306b5bd8ec436ca877eed2fef7e1 Mon Sep 17 00:00:00 2001 From: Peter Holzer Date: Wed, 29 Apr 2015 09:02:46 +0200 Subject: [PATCH] pd: Print new $PWD. --- .zshrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 281bb24..170aa56 100644 --- a/.zshrc +++ b/.zshrc @@ -44,7 +44,8 @@ pd(){ else pushd "$@" fi - namedir $(echo $(basename $PWD | tr -cd 'A-Za-z0-9_') | sed -e 's/^[0-9]/_&/') + namedir $(echo $(basename "$PWD" | tr -cd 'A-Za-z0-9_') | sed -e 's/^[0-9]/_&/') + echo "$PWD" } setenv(){