Created
April 26, 2020 03:09
-
-
Save ryanpeach/a2f6888340cfa30f4945590809c03390 to your computer and use it in GitHub Desktop.
Get the project directory as defined by the nearest git repo up your directory chain.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
export PROJECT_DIR=$(git rev-parse --show-toplevel) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment