pull/1144/merge
Georgy Bazhukov 2018-02-07 20:40:56 +00:00 committed by GitHub
commit 31fdf377e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -112,3 +112,16 @@ catt() {
fi
done
}
# mkdir & cd combo
function mcd()
{
mkdir -p $1 2> /dev/null
if [ -d $1 ]; then
cd $1
else
cd $(dirname $1)
fi
}