Created
November 13, 2024 14:56
-
-
Save chris-ramon/101b87da605ab8a946bdc3c329348e38 to your computer and use it in GitHub Desktop.
bash alias
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
# clipboard | |
alias pbcopy='xclip -selection clipboard' | |
alias pbpaste='xclip -selection clipboard -o' | |
# quick server | |
alias serv='python3 -m http.server' | |
# datagrip | |
alias dgrip='$(cd /home/chris/DataGrip-2024.1.2/bin && ./datagrip.sh)' | |
# git | |
alias gpr='hub browse' | |
alias gb='git branch --show-current' | |
alias gs='git status' | |
alias gd='git diff $@' | |
alias gdc='git diff --cached' | |
alias gl='git log -n 10 --oneline' | |
alias gld='git log --pretty=format:"%h%x09%an%x09%ad%x09%s" -n 10' | |
alias gc.='gd && git checkout .' | |
alias gp='git push origin $(gb)' | |
alias grs.='git restore --staged .' | |
alias gc='git checkout $@' | |
alias ga='git add $@' | |
alias gcm='git commit -m $@' | |
alias gclean='git clean -fd' | |
alias gsync='git pull --no-rebase origin $(gb)' | |
alias gsdevelop='git pull --no-rebase origin develop' | |
alias gfo='git fetch origin' | |
alias gct='git checkout --track $@' | |
alias gbd='git branch -D $@' | |
alias gsa='git stash apply' | |
# go | |
alias golint='golangci-lint run ./...' | |
alias gof='gofmt -w $@' | |
alias goi='goimports -w $@' | |
# node | |
# prettier | |
alias pret='prettier --write $@' | |
alias pretl='./node_modules/.bin/prettier --write $@' | |
# super-collider | |
alias scs='/usr/bin/scsynth -u 65535' | |
alias scl='/usr/bin/sclang $@' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment