mkdir cd - weakish/cheat GitHub Wiki
Combine both mkdir and cd in a single command.
Bash:
function mcd {
mkdir -p "$@" && cd $_
}
Save it to ~/.bashrc.
Fish:
function mcd
mkdir -p $argv
cd $argv
end
funcsave mcd
Combine both mkdir and cd in a single command.
Bash:
function mcd {
mkdir -p "$@" && cd $_
}
Save it to ~/.bashrc.
Fish:
function mcd
mkdir -p $argv
cd $argv
end
funcsave mcd