summaryrefslogtreecommitdiff
path: root/lib/directories.zsh
diff options
context:
space:
mode:
authorStephen Zhuang <stephen.zhuang@gmail.com>2013-01-06 14:10:42 +0800
committerStephen Zhuang <stephen.zhuang@gmail.com>2013-01-06 14:10:42 +0800
commit914c47b3473b000288c693523f83fde998282a81 (patch)
treea29cf3d796544a3b2807e26812011cda51f644a9 /lib/directories.zsh
parent692dca07158413ae27b2064c303240f5b9621cff (diff)
parent80a603259657acab97badbae20003b5a34c901f9 (diff)
downloadzsh-914c47b3473b000288c693523f83fde998282a81.tar.gz
zsh-914c47b3473b000288c693523f83fde998282a81.tar.bz2
zsh-914c47b3473b000288c693523f83fde998282a81.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'lib/directories.zsh')
-rw-r--r--lib/directories.zsh9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/directories.zsh b/lib/directories.zsh
index a787db9eb..6c743e40e 100644
--- a/lib/directories.zsh
+++ b/lib/directories.zsh
@@ -26,9 +26,9 @@ cd () {
elif [[ "x$*" == "x...." ]]; then
cd ../../..
elif [[ "x$*" == "x....." ]]; then
- cd ../../..
- elif [[ "x$*" == "x......" ]]; then
cd ../../../..
+ elif [[ "x$*" == "x......" ]]; then
+ cd ../../../../..
else
builtin cd "$@"
fi
@@ -37,8 +37,3 @@ cd () {
alias md='mkdir -p'
alias rd=rmdir
alias d='dirs -v | head -10'
-
-# mkdir & cd to it
-function mcd() {
- mkdir -p "$1" && cd "$1";
-}