Last active
January 9, 2024 16:41
-
-
Save scriptnull/2048556883f9aade1b2714ce08c92e1e to your computer and use it in GitHub Desktop.
My usual bashrc stuff
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
export PATH="$PATH:$HOME/s" | |
export PATH="$PATH:/usr/local/go/bin" | |
export PATH="$PATH:$HOME/go/bin" | |
b() { | |
git rev-parse --abbrev-ref HEAD | |
} | |
export -f b | |
c() { | |
git checkout $@ | |
} | |
export -f c | |
f() { | |
git fetch origin $@ | |
} | |
export -f f | |
p() { | |
git push origin $@ | |
} | |
export -f p | |
fb() { | |
f $(b) | |
} | |
export -f fb | |
pb() { | |
p $(b) | |
} | |
export -f pb | |
fr() { | |
fb && git reset origin/$(b) --hard | |
} | |
export -f fr | |
alias s="git status" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment