mirror of
https://github.com/stevenproctor/dotfiles.git
synced 2026-01-28 09:59:54 -06:00
37 lines
996 B
Plaintext
37 lines
996 B
Plaintext
|
|
#standard shell aliases
|
|
alias ll='ls -l'
|
|
alias la='ls -a'
|
|
alias lhal='ls -hal'
|
|
|
|
#git aliases
|
|
alias ?='git status'
|
|
alias ga='git add'
|
|
alias gaa='git add .'
|
|
alias gbc="git branch -vv | grep -e '[origin/[^:]*: gone]' | awk '{print \$1}' | xargs git branch -D"
|
|
alias gbd='git branch -d'
|
|
alias gc='git commit'
|
|
alias gcb='git branch --show-current'
|
|
alias gco='git checkout'
|
|
alias gdiff='git diff'
|
|
alias gfetch='git fetch -ap'
|
|
alias gmerge='git merge --ff-only'
|
|
alias gpull='git pull --ff-only'
|
|
alias gpush='git push'
|
|
alias gpush!='git push -u origin `git rev-parse --abbrev-ref HEAD`'
|
|
alias master!='git checkout master'
|
|
alias main!='git checkout main'
|
|
alias merged?='git branch --merged'
|
|
|
|
__git_complete ga _git_add
|
|
__git_complete gc _git_commit
|
|
__git_complete gco _git_checkout
|
|
__git_complete gdiff _git_fetch
|
|
__git_complete gfetch _git_fetch
|
|
__git_complete gmerge _git_merge
|
|
__git_complete gpull _git_pull
|
|
__git_complete gpush _git_push
|
|
|
|
# github cli aliases
|
|
alias pr-comment='gh pr comment `gcb`'
|