Skip to content

Instantly share code, notes, and snippets.

@FrankFang
Last active July 27, 2018 10:17
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save FrankFang/8d107e0b7089c1cbbd42ffc75131391f to your computer and use it in GitHub Desktop.
Save FrankFang/8d107e0b7089c1cbbd42ffc75131391f to your computer and use it in GitHub Desktop.
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