4 ms·
(cont) I also quite like, function mkcd { command mkdir -p "$1" && \ command cd "$1" && \ pwd } I'm thinking of writing one f
by frfl 3y ago
(cont)
I also quite like,
function mkcd {
command mkdir -p "$1" && \
command cd "$1" && \
pwd
}
I'm thinking of writing one for git clone, `git clonecd` or something, to cd into a cloned directory. Note that having an executable named `git-foo` in your $PATH lets you call it like a git subcommand, `git foo`