Created
August 19, 2008 08:31
-
-
Save nickel/6160 to your computer and use it in GitHub Desktop.
This file contains 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
#bash_profile: | |
alias reload='source ~/.bash_profile' | |
alias ll="ls -l" | |
alias la="ls -a" | |
alias lla="ls -la" | |
alias rm='rm -i' | |
alias srm='srm -i' | |
alias m=more | |
alias ..="cd .." | |
alias l="ls -AFhl" | |
alias setx='setenv DISPLAY :0.0' | |
alias mysql='/usr/local/mysql/bin/mysql' | |
alias tu='top -o cpu' # cpu | |
alias tm='top -o vsize' # memory | |
alias updatedb='sudo /usr/libexec/locate.updatedb' | |
#ror | |
alias sc='ruby script/console' | |
alias sg='ruby script/generate' | |
alias sd='ruby script/destroy' | |
alias ss='ruby script/server' | |
alias et='mate . &' | |
alias ett='mate app config lib lang db public test spec stories vendor/plugins &' | |
alias irb='irb --readline -r irb/completion -rubygems' # use readline, completion and require rubygems by default for irb | |
alias sr='rake db:migrate VERSION=0 && rake db:migrate && rake db:test:clone && rake spec:db:fixtures:load' | |
#svn | |
alias stm='svn st | grep ^M' | |
alias sta='svn st | grep ^!' | |
alias stq='svn st | grep ^?' | |
alias srv='svn remove' | |
alias st='svn status' | |
#git | |
alias gst='git status' | |
alias gl='git pull' | |
alias gp='git push' | |
alias gd='git diff | mate' | |
alias gc='git commit -v' | |
alias gca='git commit -v -a' | |
alias gb='git branch' | |
alias gba='git branch -a' | |
alias gpeace='gl && gp' | |
shopt -s histappend | |
HISTFILESIZE=30000 | |
HISTCONTROL=ignoreboth | |
export LESS="-i" | |
export EC2_HOME=~/.ec2 | |
export PATH=$PATH:$EC2_HOME/bin | |
export EC2_PRIVATE_KEY=pk-WUSFXZIXJD7MXNTTBNQ5FKUJAGKD25JB.pem | |
export EC2_CERT=cert-WUSFXZIXJD7MXNTTBNQ5FKUJAGKD25JB.pem | |
export JAVA_HOME=/Library/Java/Home | |
export HST=`hostname -s` | |
export PROMPT_COMMAND='echo -ne "\033]2;${USER}@${HST}:${PWD}\007"' | |
export PATH=/opt/local/bin:/opt/local/sbin:$PATH | |
test -d ~/bin && PATH=$PATH:~/bin | |
export PATH=/usr/local/mysql/bin/:/usr/local/bin:/usr/local/sbin:$HOME/bin:/opt/local/bin:$PATH | |
export JAVA_HOME=/Library/Java/Home | |
export VIM=$HOME/.vim | |
export VIMRUNTIME=/usr/local/share/vim/vim70 | |
export SVN_EDITOR='/usr/bin/mate -w' | |
export TM_SUPPORT_PATH=/Applications/TextMate.app/Contents/SharedSupport/Support | |
H=$PATH:$HOME/bin:/opt/local/bin:/usr/local/bin | |
LS_COLORS='no=00;32:fi=00:di=00;34:ln=01;36:pi=04;33:so=01;35:bd=33;04:cd=33;04:or=31;01:ex=00;32:*. | |
rtf=00;33:*.txt=00;33:*.html=00;33:*.doc=00;33:*.pdf=00;33:*.ps=00;33:*.sit=00;31:*.hqx=00;31:*.bin= | |
00;31:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*. | |
gz=00;31:*.deb=00;31:*.dmg=00;36:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.ppm=00;35:*.tga=00;35:*.xbm=0 | |
0;35:*.xpm=00;35:*.tif=00;35:*.mpg=00;37:*.avi=00;37:*.gl=00;37:*.dl=00;37:*.mov=00;37:*.mp3=00;35:' | |
export LS_COLORS; | |
CLICOLOR=1;export CLICOLOR; | |
# make bash autocomplete with up arrow | |
bind '"\e[A":history-search-backward' | |
bind '"\e[B":history-search-forward' | |
# make tab cycle through commands instead of listing | |
bind '"\t":menu-complete' | |
#alias | |
# Setting PATH for MacPython 2.5 | |
# The orginal version is saved in .bash_profile.pysave | |
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}" | |
export PATH | |
test -r /sw/bin/init.sh && . /sw/bin/init.sh | |
# Setting PATH for MacPython 2.5 | |
# The orginal version is saved in .bash_profile.pysave | |
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}" | |
export PATH | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
#PS1="\e[0;32m< \u at \h > \e[0;33m\w\e[m \$(parse_git_branch)\n$ " | |
PS1="\e[0;32m< \u at \h > \e[0;33m\w\e[m \$(parse_git_branch)\n$ " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment