Last active
October 27, 2023 16:55
-
-
Save dsmrt/c83fc4b6e1fd83c293c7a7ba20c6a228 to your computer and use it in GitHub Desktop.
Things I use in Bash scripts a lot
This file contains hidden or 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 | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
BRANCH=$(git rev-parse --abbrev-ref HEAD) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment