Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
92 lines (63 sloc) 1.24 KB
#!/usr/bin/env bash
# Path
# ----
export PATH="$HOME/bin:$PATH"
# Prompt
# ------
export PS1="\W λ "
# Locale
# ------
export LC_ALL="en_US.UTF-8"
export LANG=$LC_ALL
export LANGUAGE=$LC_ALL
alias date="date +\"%Y-%m-%d %T\""
# Editor
# ------
export EDITOR=$(command -v vim)
# Aliases
# -------
alias bc="bundle console"
alias be="bundle exec"
alias bi="bundle install --path vendor/bundle"
alias df="df -h"
alias du="du -h"
alias ll="ls -hl"
alias serve="python -m SimpleHTTPServer"
alias tags="ctags -R"
alias vi="vim"
# Operating System
# ----------------
export OS=$(uname -s)
if [ $OS = "Darwin" ]; then
source "$HOME/.bashrc.darwin"
fi
if [ $OS = "Linux" ]; then
source "$HOME/.bashrc.linux"
fi
# chruby
# ------
if [ ! -z $CHRUBY -a -r $CHRUBY ]; then
source $CHRUBY
fi
# Git
# ---
if [ ! -z $GIT_COMPLETION -a -r $GIT_COMPLETION ]; then
source $GIT_COMPLETION
fi
if [ ! -z $GIT_PROMPT -a -r $GIT_PROMPT ]; then
source $GIT_PROMPT
export PS1="\W \$(__git_ps1 '(%s) ')λ "
fi
# Go
# --
export GOPATH="$HOME/go"
export PATH="$GOPATH/bin:$PATH"
# virtualenv
# ----------
export VIRTUAL_ENV_DISABLE_PROMPT=1
# External
# --------
export BASHRC_HOST="$HOME/.bashrc.host"
if [ -r $BASHRC_HOST ]; then
source $BASHRC_HOST
fi
Jump to Line
Something went wrong with that request. Please try again.