rupa / z

z - jump around
Do What The F*ck You Want To Public License
16.32k stars 1.17k forks source link

Add verbose flag #316

Open stonematt opened 2 years ago

stonematt commented 2 years ago

Add support for verbose flag (-v) that will echo the directory after successful cd.

Often there are very similar folder names in history. I noticed that I often typed $ pwd to verify I landed in the right place. With the -v you can update the alias like this:

alias z='_z -v 2>&1' and get this behavior:

(base) tmp $ z -v folder
/private/tmp/another_folder
(base) another_folder $ z -v a_folder
/private/tmp/a_folder
(base) a_folder $ z -v folder
/private/tmp/another_folder
(base) another_folder $
stonematt commented 9 months ago

@rupa Do you track PRs from the community? Can we pull this in?