]> git.rmz.io Git - dotfiles.git/blobdiff - zsh/lib/directories.zsh
vim: promote some plugins
[dotfiles.git] / zsh / lib / directories.zsh
index 4d24fafedea240dbc16051773ca2827c9896d3e9..96be37c1e3697fdc7ae34c81ea690aad7da7d0a3 100644 (file)
@@ -1,3 +1,6 @@
+setopt auto_cd
+setopt cdablevars
+
 # Changing/making/removing directory
 setopt auto_name_dirs
 setopt auto_pushd
@@ -10,7 +13,6 @@ alias cd....='cd ../../..'
 alias cd.....='cd ../../../..'
 alias cd/='cd /'
 
-alias -- -='cd -'
 alias 1='cd -'
 alias 2='cd +2'
 alias 3='cd +3'
@@ -27,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