aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc.d/mkcd.sh
blob: bfe8a1426d0a42a065b6786daa5c379730def99c (plain)
1
2
3
4
5
6
# Create a directory and change into it
mkcd() {
    mkdir -p -- "$1" || return
    # shellcheck disable=SC2164
    cd -- "$1"
}