After pushd
ing too many times, I want to clear the whole stack of paths.
How would I popd
all the items in the stack?
I'd like to popd
without needing to know how many are in the stack?
The bash manual doesn't seem to cover this.
Why do I need to know this? I'm fastidious and to clean out the stack.
Best Answer
dirs -c
is what you are looking for.