How can I pipe in the output of pwd to pushd so that I can use pushd on the current directory. I've tried
pwd | pushd
and lots of other combinations but nothing seems to work.
Just use:
pushd $PWD
($PWD
is maintained automatically by your shell.)
Or, if you really want an external pwd
:
pushd $(/bin/pwd)
pushd .
also works
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With