From d2a56440c3e9892954aa3dcf284a9f831b179898 Mon Sep 17 00:00:00 2001 From: Colin Hebert Date: Sat, 14 Apr 2012 10:57:13 +0100 Subject: [PATCH] Minor fixes on utility - mkdcd should use cd's completion, as only the first parameter is used - no need to force builtins commands, if the user wants to wrap them, those wraps should be used --- modules/utility/init.zsh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/utility/init.zsh b/modules/utility/init.zsh index a3da077a..399ade4e 100644 --- a/modules/utility/init.zsh +++ b/modules/utility/init.zsh @@ -17,23 +17,23 @@ alias pmine='ps -U "$USER" -o pid,%cpu,%mem,command' function mkdcd { [[ -n "$1" ]] && mkdir -p "$1" && cd "$1" } -compdef _mkdir mkdcd 2> /dev/null +compdef _cd mkdcd 2> /dev/null # Changes to a directory and lists its contents. function cdll { - builtin cd "$1" && ll + cd "$1" && ll } compdef _cd cdll 2> /dev/null # Pushes an entry onto the directory stack and lists its contents. function pushdll { - builtin pushd "$1" && ll + pushd "$1" && ll } compdef _cd pushdll 2> /dev/null # Pops an entry off the directory stack and lists its contents. function popdll { - builtin popd "$1" && ll + popd "$1" && ll } compdef _cd popdll 2> /dev/null