Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 48 lines (35 sloc) 1.621 kb
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
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
fi

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

export PERL_MM_USE_DEFAULT=1
#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 '

# http://unix.stackexchange.com/questions/1288/preserve-bash-history-in-multiple-terminal-windows
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'
Something went wrong with that request. Please try again.