|
|
|
|
|
by bloopernova
599 days ago
|
|
If you use oh-my-zsh's git plugin, it defines a huge number of aliases that minimize the characters you have to type in. I use these mostly every day: gl = git pull
gp = git push
ga = aliased to git fza from my above comment
gc = "git commit -m " so I type 'gc "chore: commit message"'
gd = git diff
gs = git status
gr = cd's to the top level of the repo, cd - returns to your previous position.
I had to override some of the oh-my-zsh defaults in my .zshrc: unalias gcd
unalias ga
unalias grep
unalias gr
unalias gc
alias m='mise'
alias fd='fd -HI'
alias gfv='git fetch --verbose'
alias gs='git status'
alias gr='cd $(git rev-parse --show-toplevel)'
alias ga='git fza' # depends on gitconfig containing the alias "fza"
alias gc='git commit -m' # depends on "unalias gc"
alias commit-types='cat $HOME/.local/dotfiles/commit-types.txt'
alias ct='cat $HOME/.local/dotfiles/commit-types.txt'
alias mcdd='mcd $(date "+%Y-%m-%d")'
alias sp='showpath' # showpath = echo $PATH | sed -e $'s/:/\\\n/g'
alias uuidgen='uuidgen | tr "[:upper:]" "[:lower:]"'
I hope these are useful to someone at some point! |
|