Stephane Chazelas wrote on Wed, 07 Apr 2021 07:05 +00:00: > Or for the very lazy: > > pd()if (($#)){pushd "$@"} else {popd} Or this: pd()p${${=:-op ush}[1+$#]}d $1