Browse Source

[#145] Use builtin commands in the mkdcd utility

master
Sorin Ionescu 13 years ago
parent
commit
3cbfa686ab
  1. 2
      modules/utility/init.zsh

2
modules/utility/init.zsh

@ -18,7 +18,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" ]] && mkdir -p "$1" && cd "$1" [[ -n "$1" ]] && builtin mkdir -p "$1" && builtin cd "$1"
} }
compdef _mkdir mkdcd 2> /dev/null compdef _mkdir mkdcd 2> /dev/null

Loading…
Cancel
Save