Browse Source

Merge pull request #977 from scialex/better-d

Make the 'd' alias only show the directories that can be cd'd to using the number aliases.
Robby Russell 13 years ago
parent
commit
e8d582aba9
1 changed files with 2 additions and 2 deletions
  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"; 
-}
+}