Skip to content

Instantly share code, notes, and snippets.

@afollestad
Last active September 18, 2022 01:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afollestad/017002f422ab634d7707d3075cfe8a5c to your computer and use it in GitHub Desktop.
Save afollestad/017002f422ab634d7707d3075cfe8a5c to your computer and use it in GitHub Desktop.
export JAVA_HOME='/Users/afollestad/Library/Java/JavaVirtualMachines/azul-11-ARM64'
export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk
export PATH="$HOME/Library/Android/sdk/tools:$HOME/Library/Android/sdk/platform-tools:$PATH"
alias gw="./gradlew "
alias dev="cd ~/Development"
alias gcm="git commit -am "
alias gco="git checkout "
alias gpu="git push "
alias gpl="git pull "
alias grb="git rebase -i origin/master"
alias gcb='git fetch -p && git branch --merged | grep -v "\*" | xargs -n 1 git branch -d'
alias gca='git commit --amend --no-edit'
alias gds='git --no-pager diff --shortstat '
alias sendinput="adb shell input text "
function commit-list() { echo "$(git log --pretty=format:'%s' "$1"..HEAD)" | tail -r | sed -e 's/^/* /' }
# Gatekeeper is a bit annoying sometimes...
function openWithoutNotary {
if [[ "$1" == *".app" ]] || [[ "$1" == *".app/" ]]; then
xattr -d com.apple.quarantine "$1"
echo "Removed GateKeeper quarantine flag, opening app"
open "$1"
else
echo "Target is not a macOS app"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment