Date:        Mon, 22 Oct 2018 09:37:19 -0400
    From:        Greg Wooledge <wool...@eeg.ccf.org>
    Message-ID:  <20181022133719.g4wc7uuowwfff...@eeg.ccf.org>

  | I occasionally run a command like  mkdir /tmp/x && cd "$_"

cdnd()
{
        mkdir -p "$1" && cd "$1"
}

Make it as fancy as you want.   Interactively you're much more
likely to want !$ than $_ (I'd suggest infinitely more lijkely...)

kre



Reply via email to