Last active
February 6, 2022 11:01
-
-
Save ShaunPlummer/47f1e78471de38eab07340c62206ac1e to your computer and use it in GitHub Desktop.
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
# Add the following to your .bashrc | |
#if [ -f ~/.bash_aliases ]; then | |
# . ~/.bash_aliases | |
#fi | |
# Hide all evidence | |
# alias globalThermonuclearWar='rm -fr' | |
alias timestamp='date "+%Y%m%d_%H%M%S"' | |
# Delete everything | |
globalThermonuclearWar() { | |
rm -fr $1 | |
} | |
# Change the Tor exit node | |
alias refreshTor='sudo killall -HUP tor' | |
# run the Bitrise workflow named 'primary' if it exists | |
alias ci='bitrise run primary' | |
# Git | |
alias such='git' | |
alias very='git' | |
# cd to useful locations | |
alias android='cd /media/jurai/Projects/Android' | |
# Delete a git tag both locally and from origin | |
# Eg. purgeTag 1.1.0.20 | |
purgeTag() { | |
git push --delete origin $1 | |
git tag --delete $1 | |
} | |
# Git add everything to the stage, commit and push to origin | |
# Eg. gf "commit message" | |
gacp() { | |
CURRENT_BRANCH="$(git rev-parse --abbrev-ref HEAD)" | |
git add . && git commit -m "$1" && git push origin "$CURRENT_BRANCH" | |
} | |
# Git merge a specified branch into the current one | |
# Eg. gm branch-name | |
gm() { | |
git merge "$1" | |
} | |
# Git checkout a new branch and push it to origin | |
# Eg. gcb branch-name | |
gcb() { | |
git checkout -b "$1" && git push --set-upstream origin "$1" | |
} | |
# Run the detekt gradle task using the gradle wrapper | |
detekt() { | |
./gradlew detekt | |
} | |
# Run the ktlintcheck gradle task using the gradle wrapper | |
ktlintcheck() { | |
./gradlew ktlintcheck | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment