1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-19 20:30:09 +00:00

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.
This commit is contained in:
Robby Russell 2012-06-13 13:25:00 -07:00
commit e8d582aba9

View file

@ -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";
}
}