Skip to content

Instantly share code, notes, and snippets.

@chenko515
Created September 2, 2013 02:04
Show Gist options
  • Save chenko515/6408646 to your computer and use it in GitHub Desktop.
Save chenko515/6408646 to your computer and use it in GitHub Desktop.
aliases on mac
#######################################
# aliases defined by chenko on mac os x
#######################################
####################
#Temporary aliases:
####################
#change directory to django project mysite
alias cdmysite="cd /Users/chenko/develop/aptanaWorkspace/mysite"
####################
# Permanent aliases:
####################
# change directory to ..
alias ..="cd .."
# change directory to ~
alias ~="cd ~"
# quick edit for .bash_profile
alias br="subl ~/.bashrc"
# disk free in long human-readable style
alias df="df -lh"
# goagent via cli(not goagentx)
alias go="python /Applications/goagent/local/proxy.py"
# grep
alias grep='grep --color=always'
# brew install
alias in="brew install"
# kill pid
alias k9="kill -9"
# list file
alias l="ls"
alias ll="ls -l"
alias la="ls -al"
# python related
alias p3="python3"
alias p2="python"
# ps and grep
alias pg="ps aux | grep "
# sublime text2
alias subl="/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl -n $@"
# top orderd by cpu
alias top="top -o cpu"
# for syntax highlight ???
alias xcat='pygmentize -f console'
# colored bash
export PS1="[\u@mba] $ "
export CLICOLOR="xterm-color"
export LSCOLORS="gxfxcxdxbxegedabagacad"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment