Created
November 4, 2012 17:51
-
-
Save anonymous/4012767 to your computer and use it in GitHub Desktop.
.bash_profile
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
umask 002 | |
PS1="\[\e]2;\w\a\][\[\e[32m\]\u\[\e[0m\]@\[\e[31m\]\h\[\e[0m]\]:\[\e[35m\]\w\[\e[0m\]$ " | |
PS2=">> " | |
export PS1 PS2 | |
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/local/mongodb/bin:/usr/local/git/bin:$PATH" | |
export JAVA_HOME="/Library/Java/Home" | |
export HADOOP_HOME="/Users/arikan/Sites/Hadoop" | |
export MAHOUT_HOME="/Users/arikan/Sites/Mahout" | |
export MAHOUT_HEAPSIZE=2000 | |
export MAGICK_HOME="/usr/local/bin/imagemagick" | |
export PATH=$MAGICK_HOME/bin:$PATH | |
export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib" | |
export JRUBY_OPTS="--1.9" | |
# export JRUBY_HOME="/usr/share/jruby" | |
# export PATH=$JRUBY_HOME/bin:$PATH | |
export TERM=xterm-256color | |
export EDITOR="mate -w" | |
export HISTCONTROL=ignoredups | |
export HISTCONTROL=ignoreboth | |
export HISTSIZE=1000000 | |
shopt -s histappend | |
# ls | |
alias l='ls -1' | |
alias ll='ls -lh' | |
alias la='ls -A' | |
alias lla='ls -al' | |
alias rm='rm -i' | |
# cd | |
alias ..='cd ..' | |
alias ...='cd ../..' | |
alias ....='cd ../../..' | |
alias .....='cd ../../../..' | |
# rails | |
complete -C $HOME/.rake/tab_completion -o default rake | |
alias t='autotest' | |
alias rr='rake routes | grep' | |
alias migrate='rake db:migrate db:test:clone' | |
alias rs='touch tmp/restart.txt' | |
alias ss='rails server' | |
alias sc='rails console' | |
alias sd='rails dbconsole' | |
# mysql start / restart | |
alias ms="sudo launchctl load -w /Library/LaunchDaemons/com.mysql.mysqld.plist" | |
# mysql stop | |
alias mm="sudo launchctl unload -w /Library/LaunchDaemons/com.mysql.mysqld.plist" | |
# Setting PATH for MacPython 2.6 | |
# The orginal version is saved in .profile.pysave | |
PATH="/Library/Frameworks/Python.framework/Versions/2.6/bin:${PATH}" | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment