From 6be02f8062e55a1a3679861f6d12cc3beffcd71b Mon Sep 17 00:00:00 2001 From: MaYuming Date: Fri, 30 Jun 2017 20:09:22 +0800 Subject: [PATCH] Revert "mkcd one or more dirs" This reverts commit f369efe953a62abc1012daf70d932bd9f568b2e8. --- plugins/available/base.plugin.bash | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/plugins/available/base.plugin.bash b/plugins/available/base.plugin.bash index e028051a..5450a416 100755 --- a/plugins/available/base.plugin.bash +++ b/plugins/available/base.plugin.bash @@ -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 ()