seaofclouds (owner)

Revisions

gist: 5464 Download_button fork
public
Description:
bash profile
Public Clone URL: git://gist.github.com/5464.git
Embed All Files: show embed
.bash_profile #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# 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"
 
 
environment.plist #
1
2
3
4
5
6
7
8
9
10
<!-- 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>