Skip to content

Some Useful Aliases

anandpdoshi edited this page Feb 12, 2013 · 3 revisions

Add these to your ~/.bashrc file (or ~/.profile for MacOSX users)

# mysql alias
alias msq='mysql -u root -pPASSWORD'

# useful utils aliases
alias grpy='grep -RHn --include=*.py --color'
alias grjs='grep -RHn --include=*.js --color'
alias grtxt='grep -RHn --include=*.txt --color'
alias grall='grep -RHn --include=*.js --include=*.py --include=*.txt --include=*.html --include=*.css --color'

alias gs='git status'
alias gb='git branch'
alias gc='git commit'
alias gp='git push'
alias gpl='git pull'
alias ga='git add'
alias gm='git merge'
alias gco='git checkout'
alias gd="git diff"
alias gdc="git diff --cached"
alias gap="git add -p"

alias wgs='./lib/wnf.py --git status'
alias wgb='./lib/wnf.py --git branch'
alias wgd="./lib/wnf.py --git diff"
alias wgdc="./lib/wnf.py --git 'diff --cached'"
alias wgap="./lib/wnf.py --git 'add -p'"
alias wnf='./lib/wnf.py'

export LC_CTYPE="en_US.utf8"
export LANG="en_US.utf8"
export PYTHONIOENCODING="utf-8"
Clone this wiki locally