Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: alias with a parameter



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




Messages sorted by: Reverse Date, Date, Thread, Author