Use case: if you'd normally do z a b c then you may also wish to do z -c a; z -c b; z -c c and expect to land in the same directory with both commands.
Without -c, if you just do z a; z b; z c then you'll end up searching for b globally instead of within a.
Use case: if you'd normally do
z a b c
then you may also wish to doz -c a; z -c b; z -c c
and expect to land in the same directory with both commands.Without
-c
, if you just doz a; z b; z c
then you'll end up searching forb
globally instead of withina
.Ref:
- c
option in readme of https://github.com/rupa/zIt seems that currently
-c
is used for "clean" operation according to--help