Revert "fix mkcd issue #993"

This reverts commit 8816edd805.
pull/994/head
MaYuming 2017-06-30 18:27:43 +08:00
parent 8816edd805
commit f19a8b88eb
1 changed files with 3 additions and 2 deletions

View File

@ -88,7 +88,7 @@ function pmdown ()
echo "You don't have a markdown command installed!"
fi
}
#if using mkcd many dirs, it will make all dirs and cd into the lastest one.
function mkcd ()
{
about 'make a directory and cd into it'
@ -96,7 +96,8 @@ function mkcd ()
example '$ mkcd foo'
example '$ mkcd /tmp/img/photos/large'
group 'base'
mkdir -p "$@" && eval cd "\"\$$#\""
mkdir -p -- "$*"
cd -- "$*"
}
function lsgrep ()