mirror of
https://github.com/sorin-ionescu/prezto.git
synced 2025-02-02 23:22:15 +08:00
[#145] Use builtin commands in the mkdcd utility
This commit is contained in:
parent
8bcece5895
commit
3cbfa686ab
@ -18,7 +18,7 @@ alias pmine='ps -U "$USER" -o pid,%cpu,%mem,command'
|
||||
|
||||
# Makes a directory and changes to it.
|
||||
function mkdcd {
|
||||
[[ -n "$1" ]] && mkdir -p "$1" && cd "$1"
|
||||
[[ -n "$1" ]] && builtin mkdir -p "$1" && builtin cd "$1"
|
||||
}
|
||||
compdef _mkdir mkdcd 2> /dev/null
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user