Merge pull request #994 from YumingMa/master

fix mkcd issue #993
This commit is contained in:
Nils Winkler
2017-06-30 15:26:15 +02:00
committed by GitHub

View File

@@ -91,13 +91,14 @@ function pmdown ()
function mkcd () function mkcd ()
{ {
about 'make a directory and cd into it' about 'make one or more directories and cd into the last one'
param 'path to create' param 'one or more directories to create'
example '$ mkcd foo' example '$ mkcd foo'
example '$ mkcd /tmp/img/photos/large' 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' group 'base'
mkdir -p -- "$*" mkdir -p -- "$@" && eval cd -- "\"\$$#\""
cd -- "$*"
} }
function lsgrep () function lsgrep ()