Skip to content

Commit

Permalink
Merge pull request #977 from scialex/better-d
Browse files Browse the repository at this point in the history
Make the 'd' alias only show the directories that can be cd'd to using the number aliases.
  • Loading branch information
robbyrussell committed Jun 13, 2012
2 parents e3d426d + d693711 commit e8d582a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/directories.zsh
Expand Up @@ -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";
}
}

0 comments on commit e8d582a

Please sign in to comment.