fix mkcd issue #993

This commit is contained in:
MaYuming
2017-06-30 17:03:50 +08:00
parent be077be3f5
commit 8816edd805

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,8 +96,7 @@ function mkcd ()
example '$ mkcd foo'
example '$ mkcd /tmp/img/photos/large'
group 'base'
mkdir -p -- "$*"
cd -- "$*"
mkdir -p "$@" && eval cd "\"\$$#\""
}
function lsgrep ()