Skip to content

Instantly share code, notes, and snippets.

@samiron
Last active May 12, 2023 19:59
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 samiron/0972979cb40073584547283959cf565e to your computer and use it in GitHub Desktop.
Save samiron/0972979cb40073584547283959cf565e to your computer and use it in GitHub Desktop.
.zshrc files
source ~/.zshrc.java
source ~/.zshrc.git
## Git Utils
alias gb="git branch --sort=-committerdate"
function gcs(){
n=$1
gcnv -m "squash! .."
git rebase -i HEAD~$n
}
function gl(){
n=$1
git log --oneline -n $n
}
function gcnv(){
git commit --no-verify $*
}
function gpnv(){
git push --no-verify $*
}
alias j17="export JAVA_HOME=`/usr/libexec/java_home -v 17`; java -version"
alias j11="export JAVA_HOME=`/usr/libexec/java_home -v 11`; java -version"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment