Created
August 14, 2008 18:28
-
-
Save seaofclouds/5464 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
# save to ~/.bash_profile | |
# == ALIASES ==================== | |
# general settings | |
alias settings="mate ~/.bash_login" | |
alias reload="source ~/.bash_login" | |
alias x="exit" | |
alias cl="clear" | |
alias ls="ls -la" | |
alias mysql="mysql5 -u root" | |
# mongrel rails start | |
alias mrs="./script/server" | |
alias mrs1="mongrel_rails start -p 3001" | |
alias mrs2="mongrel_rails start -p 3002" | |
alias mrs3="mongrel_rails start -p 3003" | |
alias mrs4="mongrel_rails start -p 3004" | |
alias mrs5="mongrel_rails start -p 3005" | |
alias mrs6="mongrel_rails start -p 3006" | |
# thin start | |
alias ts="thin start" | |
alias ts1="thin start -p 3001" | |
alias ts2="thin start -p 3002" | |
# svn | |
alias sup="svn up" | |
alias ss="svn status" | |
alias si="svn info" | |
# git | |
alias gs="git status" | |
alias status="git status" | |
alias push="git push" | |
alias pull="git pull" | |
alias commit="git commit -a" | |
#staticmatic | |
alias sb="staticmatic build ." | |
alias sp="staticmatic preview ." | |
#rake | |
alias rdm="rake db:migrate" | |
alias rdfl="rake db:fixtures:load" | |
# -- current projects ------- | |
alias sites="cd ~/Sites/" | |
# -- personal projects ------ | |
alias cdtmb="~/Library/Application\ Support/TextMate/Bundles/" | |
# == TERMINAL EXPERIENCE AND UI ======== | |
# get git branch name | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
# set prompt | |
PS1="\[\e[37;45;1m\][\u@\h]\[\e[0m\[\e[35m\] \w\$(parse_git_branch) #\[\e[0m\] " | |
# use textmate as default editor | |
export VISUAL="mate -w" | |
export EDITOR="mate -w" | |
# configure ruby gems | |
export RUBYLIB="/opt/local/lib/ruby/site_ruby/1.8/" | |
export RUBYOPT="rubygems" | |
#configure path | |
export PATH="/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:/opt/local/lib/postgresql82/bin:$PATH" | |
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
<!-- save to ~/.MacOSX/environment.plist --> | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>PATH</key> | |
<string>/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin</string> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment