Last active
May 12, 2023 19:59
-
-
Save samiron/0972979cb40073584547283959cf565e to your computer and use it in GitHub Desktop.
.zshrc files
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
source ~/.zshrc.java | |
source ~/.zshrc.git |
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
## 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 $* | |
} |
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
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