News for hackers. Stuff that matters.
Re:Cd Is Wasting Your Time by helb on Wednesday March 28, 2018 @09:17AM (#16697409)
Possibly related – one of my most used keystroke-saving aliases/functions is:

    mcd () {
        mkdir -p "$*" && cd "$*"
    }
…which, quite obviously, creates a directory and jumps into it.

Note: the name overrides the GNU Mtools' mcd (https://www.gnu.org/software/mtools/manual/mtools.html#mcd) on some systems – choose another name if you need the tool. The original mcd "changes MSDOS directory" according to it's manpage, and wants to do something with a floppy drive when i run it by mistake.

Re:Cd Is Wasting Your Time by andscoop on Wednesday March 28, 2018 @06:58PM (#16702822)
Zsh has a built in like this called `take` that which quite nifty
Re:Cd Is Wasting Your Time by helb on Thursday March 29, 2018 @04:54AM (#16705548)
Thanks, didn't know that. I just copied the mcd function from .bashrc to .zshrc when i switched ~5 years ago…