aboutsummaryrefslogblamecommitdiff
path: root/bash/bashrc.d/mkcd.bash
blob: d251095af0b0c6f7741cdd52325ea2a890d36626 (plain) (tree)
1
2
3
4
5
6

                                       
                                          
 
                          
 
# Create a directory and change into it
mkcd() {
    mkdir -p -- "$1" && builtin cd -- "$1"
}
complete -A directory mkcd