at 7:15… you are using pushd +2
and at 8:45 you said stuff would be rotated using negative number but you used dirs -0… but nothing rotated…
i got confused.
at 7:15… you are using pushd +2
and at 8:45 you said stuff would be rotated using negative number but you used dirs -0… but nothing rotated…
i got confused.
Think that was a typo, he used dirs -0
instead of pushd -0
. Using dirs
with an index just displays the directory.
That video kinda blew my mind.
I’ve been using linux on a daily basis for about 14 years and I use the command line regularly (but not quite daily) and I never knew you could do that!!
Learn something new every day…
Yeah it was just a mistake no one caught until it was live.
This wasn’t something I’ve considered too deeply though it did raise my eyebrow for a few seconds.
I am one of those savages who replaced cd
for the directory stack, and then wrap other tools around it. IIRC some recent changes in bash
has made oddly-named directories act poorly in some situations (with these tools that is).