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