Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
alias showusers='cut -d: -f1 /etc/passwd'
alias showversion='lsb_release -a'
alias lr='ls -R | grep ":$" | sed -e '\''s/:$//'\'' -e '\''s/[^-][^\/]*\//--/g'\'' -e '\''s/^/ /'\'' -e '\''s/-/|/'\'''
alias gst="git status -sb"
alias grmmergedbranch='git branch --merged | grep -v "\*" | grep -v master | grep -v dev | xargs -n 1 git branch -d'
alias gll="git pull ; git submodule update"
alias grc="git rebase --continue"
alias glog="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -- | less"
alias ga="git add"
alias gc="git commit -v"
alias gc.="git commit -v"
alias gcamend="git commit -v . --amend"
alias gd="git diff --ignore-all-space --ignore-blank-lines"
alias gp="git push"
alias gl="git pull"
alias gcm="git commit . -m update"
alias gr="git rebase"
alias gcob="git checkout -b"
alias gco="git checkout"
alias df='df -Th'
alias du="du -ach | sort -h"
# psg command
alias psg="ps aux | grep -v grep | grep -i -e VSZ -e"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment