Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (35 sloc) 1.58 KB
if [ "$SHELL" == "/opt/local/bin/bash" ]; then
# MacPorts Installer addition on 2012-07-30_at_22:44:09: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.
export PATH=/opt/local/lib/postgresql92/bin:$PATH
#export PATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin:$PATH
export NODE_PATH=$HOME/node_modules
export PATH=$HOME/.vim/bin:$HOME/bin:$NODE_PATH/.bin:$PATH
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
#eval $(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)
. $HOME/perl5/perlbrew/etc/bashrc
. setup-bash-complete
. $HOME/.bashrc
export EDITOR=vim
export LESS=' -SIR '
export HISTCONTROL=ignoreboth:erasedups # no duplicate entries
export HISTSIZE=100000 # big big history
export HISTFILESIZE=100000 # big big history
shopt -s histappend # append to history, don't overwrite it
# Save and reload the history after each command finishes
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
set -o vi
shopt -s extglob
# ^p check for partial match in history
bind -m vi-insert "\C-p":dynamic-complete-history
# ^n cycle through the list of partial matches
bind -m vi-insert "\C-n":menu-complete
# ^l clear screen
bind -m vi-insert "\C-l":clear-screen
bind '"\C-[[A": history-search-backward'
bind '"\C-[[B": history-search-forward'