fix mkcd issue #993
parent
be077be3f5
commit
8816edd805
|
|
@ -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 ()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue