Revert "mkcd one or more dirs"

This reverts commit f369efe953.
pull/994/head
MaYuming 2017-06-30 20:09:22 +08:00
parent f369efe953
commit 6be02f8062
1 changed files with 4 additions and 5 deletions

View File

@ -91,14 +91,13 @@ function pmdown ()
function mkcd ()
{
about 'make one or more directorys and cd into the lastest one'
param 'one or more directorys to create'
about 'make a directory and cd into it'
param 'path to create'
example '$ mkcd foo'
example '$ mkcd /tmp/img/photos/large'
example '$ mkcd foo foo1 foo2 fooN'
example '$ mkcd /tmp/img/photos/large tmp/img/photos/self tmp/img/photos/Beijing'
group 'base'
mkdir -p -- "$@" && eval cd -- "\"\$$#\""
mkdir -p -- "$*"
cd -- "$*"
}
function lsgrep ()