z icon indicating copy to clipboard operation
z copied to clipboard

Feature Request: Show directory after changing

Open deverl opened this issue 9 years ago • 2 comments

I always end up typing pwd after z, so that I know for sure which directory I am in. So, in my local copy, I change this line:

   [ "$cd" ] && cd "$cd"

to this:

    [ "$cd" ] && cd "$cd" && pwd

so that it prints the current directory, after changing directories.

This might be a nice enhancement for z.

Love the product! Thank you

deverl avatar Nov 07 '16 15:11 deverl

Isn't that what your Prompt is supposed to do?

This can not be applied here with 100%, but one element of the Unix Philosophy is:

Rule of Silence Developers should design programs so that they do not print unnecessary output. This rule aims to allow other programs and developers to pick out the information they need from a program's output without having to parse verbosity.

That is the background of cd not printing output on successful execution, and I think z should in general mimic the behavior here.

jounathaen avatar Mar 05 '18 11:03 jounathaen

I generally like to keep my prompt short and show only the last or last few paths parts. Though, when using z I want to see exactly where I end up.

Showing the matched part in color as with GNU grep could also be useful.

ajasmin avatar Sep 09 '20 18:09 ajasmin