]> git.rmz.io Git - dotfiles.git/blobdiff - zsh/lib/directories.zsh
vim: promote some plugins
[dotfiles.git] / zsh / lib / directories.zsh
index e445eb84cf69b96d968eff970751b00d556392b3..96be37c1e3697fdc7ae34c81ea690aad7da7d0a3 100644 (file)
@@ -1,3 +1,6 @@
+setopt auto_cd
+setopt cdablevars
+
 # Changing/making/removing directory
 setopt auto_name_dirs
 setopt auto_pushd
@@ -26,9 +29,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