aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/mkcd.bash
blob: 2d5966413a29d7c0eba3304e0fed13f8b566c6c1 (plain) (blame)
1
2
3
4
5
# Create a directory and change into it
mkcd() {
    mkdir -p -- "$1" && builtin cd -- "$1"
}
complete -A directory mkcd