Skip to content

Instantly share code, notes, and snippets.

View bgnih's full-sized avatar

Brian Gallagher bgnih

View GitHub Profile
@bgnih
bgnih / ldock.sh
Created December 4, 2018 18:36 — forked from bryanpizzillo/ldock.sh
Function for running local docker compose and keeping project name
function ldock() {
# Find the root of the repo. Redirect stderr as if we are not
# under a repo an error will occur.
REPO_ROOT=`git rev-parse --show-toplevel 2> /dev/null`
if [ "$REPO_ROOT" == "" ]; then
echo "You must run this command from within a git repo."
return 1
fi