Skip to content

Instantly share code, notes, and snippets.

@oc
Created May 20, 2024 19:06
Show Gist options
  • Save oc/62063b709f599194fe1fdd58035782a7 to your computer and use it in GitHub Desktop.
Save oc/62063b709f599194fe1fdd58035782a7 to your computer and use it in GitHub Desktop.
alias globurl='noglob urlglobber '
# Git
alias gup='git pull --rebase --stat -v'
alias gbme='git branch --merged'
alias gbno='git branch --no-merged'
alias gist='nocorrect gist'
alias gbcb='git symbolic-ref --short HEAD'
alias gbprune='git fetch --prune'
function gbclean() {
test $(gbcb) = 'master' && (gbme|grep -v master|xargs git branch -D)
}
function current_branch() {
git branch --show-current
}
alias gpu='git push'
alias gsl='git shortlog -sn'
alias gup='git pull --rebase --stat -v'
alias grso='git remote show origin'
alias grprune='git remote prune origin'
# Projects
alias inf='cd ${HOME}/dev/infrastructure'
# Convenience...
alias ls="ls -G -F"
alias la="ls -alh"
alias ll="ls -l"
alias l="ls"
alias pu="pushd ."
alias po="popd"
alias m2='mvn -q clean install'
alias m2c='mvn -q clean install -DskipTests -P-integrationTests'
alias focus='mvn -q verify -Dcucumber.tags=@focus'
# Git
# see
alias g='git'
alias gst='git status'
alias gbno='git branch --no-merged'
alias gbme='git branch --merged'
alias gup='git pull --rebase --stat -v'
alias gpu='git push'
alias gd='git diff'
#alias gdv='git diff -w "$@" | vim -R -'
alias gba='git branch -a'
alias gsl='git shortlog -sn'
alias gcp='git cherry-pick'
#alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk'
alias gbup='git pull origin $(current_branch)'
alias gbal='git pull --all -v'
alias gbpu='git push origin $(current_branch)'
alias gbup='git pull origin $(current_branch)'
alias gbpnp='git pull origin $(current_branch) && git push origin $(current_branch)'
alias wtc='git commit -m "$(curl -qs whatthecommit.com | sed -nE '\''s/<p>(.*)/\1/p'\'')"'
alias nonascii="LC_COLLATE=C grep '[^ -~]' -nH"
# Kubernetes
alias kc=kubectl
alias kctx='kubectl config current-context'
alias uuidgenl="uuidgen | tr 'A-Z' 'a-z'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment