浏览代码

made the 'd' alias only show the directories that can be cd'ed to using the number aliases

Alex Light 12 年之前
父节点
当前提交
d693711f14
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/directories.zsh

+ 2 - 2
lib/directories.zsh

@@ -36,9 +36,9 @@ cd () {
 
 alias md='mkdir -p'
 alias rd=rmdir
-alias d='dirs -v'
+alias d='dirs -v | head -10'
 
 # mkdir & cd to it
 function mcd() { 
   mkdir -p "$1" && cd "$1"; 
-}
+}