Last active
July 27, 2018 10:17
-
-
Save FrankFang/8d107e0b7089c1cbbd42ffc75131391f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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