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(){