make croot slightly more useful
Have croot take an argument of a directory to end up in, so we can jump around the tree even faster. Change-Id: Ieb6a8d47fee0412006a11192b29ed44604961312
This commit is contained in:
parent
9ecf54456c
commit
32ec50a1f1
1 changed files with 5 additions and 1 deletions
|
@ -922,7 +922,11 @@ function croot()
|
|||
{
|
||||
T=$(gettop)
|
||||
if [ "$T" ]; then
|
||||
\cd $(gettop)
|
||||
if [ "$1" ]; then
|
||||
\cd $(gettop)/$1
|
||||
else
|
||||
\cd $(gettop)
|
||||
fi
|
||||
else
|
||||
echo "Couldn't locate the top of the tree. Try setting TOP."
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue