Created
January 8, 2015 08:33
-
-
Save kanmeiban/e8485e86efe08d67fbc1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# MacPorts PATH | |
# PATH=$HOME/.rbenv/bin:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/Users/sava/bin:/usr/local/bin | |
# PG_91_PATH=$PATH:/opt/local/lib/postgresql91/bin | |
# PG_92_PATH=$PATH:/opt/local/lib/postgresql92/bin | |
# | |
# export PATH=$PG_91_PATH | |
# Homebrew PATH | |
export PATH=/usr/local/bin:/bin:/usr/sbin:/sbin:/usr/bin:/opt/X11/bin:/usr/X11/bin | |
source /usr/local/share/chruby/chruby.sh | |
source /usr/local/share/chruby/auto.sh | |
chruby ruby-1.9.3-p392 | |
# git prompt | |
source ~/.git-prompt.sh | |
GIT_PS1_SHOWDIRTYSTATE=1 | |
GIT_PS1_SHOWSTASHSTATE=1 | |
GIT_PS1_SHOWUNTRACKEDFILES=1 | |
GIT_PS1_SHOWCOLORHINTS=1 | |
# end git prompt | |
export LANG=bg_BG.UTF-8 | |
export LC_TIME=bg_BG.UTF-8 | |
export PS1="\h:\w\$(__git_ps1 ' (%s)')> " | |
export EDITOR='mate -w' | |
export PAGER=/usr/bin/less | |
shopt -s histappend | |
export HISTFILESIZE=10000000 | |
export HISTSIZE=100000 | |
export PROMPT_COMMAND="history -a" | |
HISTTIMEFORMAT="+%Y-%m-%d %H:%M:%S" | |
export RSYNC_RSH=ssh | |
alias b=bundle | |
alias be='bundle exec' | |
alias gl='git log --oneline' | |
function swp { | |
if [ `sudo launchctl list | grep org.macports.postgresql | cut -c31-32` == 91 ]; then | |
echo 'Switching to postgresql 9.2' | |
export PATH=$PG_92_PATH | |
sudo launchctl unload -w /Library/LaunchDaemons/org.macports.postgresql91-server.plist | |
sudo launchctl load -w /Library/LaunchDaemons/org.macports.postgresql92-server.plist | |
else | |
echo 'Switching to postgresql 9.1' | |
export PATH=$PG_91_PATH | |
sudo launchctl unload -w /Library/LaunchDaemons/org.macports.postgresql92-server.plist | |
sudo launchctl load -w /Library/LaunchDaemons/org.macports.postgresql91-server.plist | |
fi | |
} | |
# MacPorts bash completion | |
# if [ -f /opt/local/etc/profile.d/bash_completion.sh ]; then | |
# . /opt/local/etc/profile.d/bash_completion.sh | |
# fi | |
# Homebrew bash completion | |
if [ -f $(brew --prefix)/etc/bash_completion ]; then | |
. $(brew --prefix)/etc/bash_completion | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment