Skip to content

Instantly share code, notes, and snippets.

@davialexandre
Created September 3, 2018 12:47
Show Gist options
  • Save davialexandre/d9a93788d531629cf7168bbf445566d4 to your computer and use it in GitHub Desktop.
Save davialexandre/d9a93788d531629cf7168bbf445566d4 to your computer and use it in GitHub Desktop.
civibuildcd
function civibuildcd {
DEST=$(civibuild show $1 | grep -o -e "CMS_ROOT: .*" | cut -d' ' -f 2)
if [ -d "$DEST" ]; then
cd $DEST
else
echo "No folder found for $1"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment