Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 7281873a8b
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (27 sloc) 1.364 kB
if [[ $- = *i* ]]; then
shopt -s extglob failglob histappend checkwinsize
((${BASH_VERSINFO[0]} >= 4)) && shopt -s globstar
# TODO: make conditional based on editing-mode (note: when changing modes from .inputrc $SHELLOPTS does not recognize it)
# bind -x '"\C-\M-w":kill -WINCH $$';; # can't use -x on .inputrc
# put these here instead of .bash_profile due to issues with screen
[[ -r ~/.git-completion.bash ]] && . ~/.git-completion.bash
# detect git-aware prompt function
if [[ $(type -t __git_ps1) = function ]]; then
gitps1='$(__git_ps1)'
fi
# monochrome
# t_bold=\\[$(tput bold)\\] t_reset=\\[$(tput sgr0)\\]
# PS1="$t_reset\\n$t_bold\\u@\\h:\\w$t_reset$gitps1\\n\$(jobs_prompt)\\$ "; PS2='> '; PS3='? '; PS4='+ '
# cygwin style
t_green=\\[$(tput setaf 2)\\] t_yellow=\\[$(tput setaf 3)\\] t_reset=\\[$(tput sgr0)\\]
PS1="$t_reset\\n$t_green\\u@\\h $t_yellow\\w$t_reset$gitps1\\n\$(jobs_prompt)\\$ "; PS2='> '; PS3='? '; PS4='+ '
unalias -a; [[ -r ~/.aliasrc ]] && . ~/.aliasrc
fi
[[ -r ~/.bashrc_local ]] && . ~/.bashrc_local
# python's virtualenv (for when invoked from screen)
[[ -z $VIRTUALENV_HOME ]] && if VIRTUALENV_HOME=$(rfind bin/activate); then
source $VIRTUALENV_HOME
export VIRTUALENV_HOME=${VIRTUALENV_HOME%/bin/activate}
else
unset VIRTUALENV_HOME
fi
Jump to Line
Something went wrong with that request. Please try again.