Fix mkdcd: mkdir is no builtin command

This commit is contained in:
Sebastian Wiesner 2012-05-11 14:52:11 +02:00
parent aa925d22b4
commit 7a8b1e98a2

View file

@ -15,7 +15,7 @@ alias pmine='ps -U "$USER" -o pid,%cpu,%mem,command'
# Makes a directory and changes to it. # Makes a directory and changes to it.
function mkdcd { function mkdcd {
[[ -n "$1" ]] && builtin mkdir -p "$1" && builtin cd "$1" [[ -n "$1" ]] && mkdir -p "$1" && builtin cd "$1"
} }
compdef '_path_files -/' mkdcd 2> /dev/null compdef '_path_files -/' mkdcd 2> /dev/null