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