Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
127 lines (99 sloc) 3.838 kb
export LC_CTYPE=en_US.UTF-8
export MANWIDTH=80
#
# Bash history
#
bind Space:magic-space # auto-expand history magic
shopt -s histappend # make sure hist is kept across sessions
export HISTCONTROL=erasedups
export HISTSIZE=5000
export PROMPT_COMMAND='history -a' # Append immediately so new shells can use it
# Please don't autocomplete these thx
export FIGNORE="#:~:DS_Store:.pyc:.swp:.swo"
#
# I think I'm a convert.
#
export EDITOR=vim
export VISUAL=gvim
export FCEDIT=vim
# PATH Settings, clearly
# Don't need any additions at the moment
# [[ -r ~/.bash.d/paths.sh ]] && source ~/.bash.d/paths.sh
# Simple check for an interactive shell -- don't do anything else if not.
# So, make PATH additions and stuff before this.
[ -z "$PS1" ] && return
# Nix flow control to free the keys for readline inc search, vim, etc.
stty stop undef
stty start undef
# 'cd' to children of a host of directories, as if they were always in CWD
export CDPATH=:~:~/src/work:~/src
# Directory listings in Technicolor
export CLICOLOR='true'
export LSCOLORS="gxfxcxdxbxegedabagacad"
#
# 'less' is more
#
export PAGER="/usr/bin/less"
export LESS="-Ri"
if command -v lesspipe.sh >/dev/null; then
export LESSOPEN="|lesspipe.sh %s"
fi
# A man's prompt is his castle, or something.
[[ -r ~/.bash.d/prompt.sh ]] && source ~/.bash.d/prompt.sh
# Functions for great justice
[[ -r ~/.bash.d/functions.sh ]] && source ~/.bash.d/functions.sh
# And aliases for all mankind
[[ -r ~/.bash.d/aliases.sh ]] && source ~/.bash.d/aliases.sh
# Completion
[[ -r ~/.bash.d/completion.sh ]] && source ~/.bash.d/completion.sh
# ====================================================
# = App- and Platform-specific Bits =
# ====================================================
if [ "$(uname -s)" == "Darwin" ] && [ -f ~/.bash.d/platform-osx.sh ]; then
. ~/.bash.d/platform-osx.sh
elif [ -f ~/.bash.d/platform-linux.sh ]; then
. ~/.bash.d/platform-linux.sh
fi
# AWS credential management and env vars that the API tools want
[[ -r ~/.aws/setup.sh ]] && source ~/.aws/setup.sh
# Travis CI CLI
[[ -r ~/.travis/travis.sh ]] && source ~/.travis/travis.sh
#-------------------------------------------------------------------------------
# Language packaging, sandboxes, and stuff
#-------------------------------------------------------------------------------
# Go default workspace
export GOPATH=$HOME/src/go
# Because of this godoc crap: https://github.com/Homebrew/homebrew/issues/23281
export GOROOT=$(go env GOROOT)
export PATH=$PATH:$GOPATH/bin:$GOROOT/bin
# Haskell Cabal
[[ -d ~/.cabal/bin ]] && export PATH=~/.cabal/bin:$PATH
# OCaml OPAM configuration
[[ -r ~/.opam/opam-init/init.sh ]] && source ~/.opam/opam-init/init.sh
# Python REPL startup file. Sets up history and completion.
export PYTHONSTARTUP=$HOME/.pythonrc
# Python Version Switching & virtualenvs
# brew install pyenv pyenv-virtualenv
which pyenv > /dev/null && eval "$(pyenv init -)"
which pyenv-virtualenv-init > /dev/null && eval "$(pyenv virtualenv-init -)"
# TODO: migrate virtualenvwrapper envs and then ditch this stuff
# virtualenv & wrapper
export VIRTUALENV_USE_DISTRIBUTE=true
export WORKON_HOME=$HOME/.virtualenvs
export PIP_VIRTUALENV_BASE=$WORKON_HOME
export PIP_RESPECT_VIRTUALENV=true
# Ruby Version Switching
# brew install chruby ruby-install
# Well put: http://pbrisbin.com/posts/chruby
if [ -x /usr/local/opt/chruby ]; then
source /usr/local/opt/chruby/share/chruby/chruby.sh
source /usr/local/opt/chruby/share/chruby/auto.sh
fi
#-------------------------------------------------------------------------------
# Machine-specific stuff, creds kept out of SCM, etc.
#-------------------------------------------------------------------------------
if [ -d ~/.local ]; then
for f in ~/.local/*.sh; do
. "$f"
done
fi
Jump to Line
Something went wrong with that request. Please try again.