Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
54 lines (41 sloc) 1.39 KB
#!/bin/bash
source ~/.dotfiles/colors.sh
source ~/.dotfiles/cool-prompt.sh
# Set the full bash prompt.
function set_bash_prompt () {
# Set the PYTHON_VIRTUALENV variable.
set_virtualenv
# Set the BRANCH variable.
if is_git_repository ; then
set_git_branch
elif is_hg_repository ; then
set_hg_branch
else
BRANCH=''
fi
# Set the bash prompt variable.
PS1="
${PYTHON_VIRTUALENV}${orange}\u ${yellow}at${reset} mbp ${blue}\w${reset} ${BRANCH}
\$ "
}
# Tell bash to execute this function just before displaying its prompt.
PROMPT_COMMAND=set_bash_prompt
# coffeescript config file
export COFFEELINT_CONFIG=~/.dotfiles/.coffeelint
# Add bin directory to path
PATH=$PATH:~/.dotfiles/bin
# python tab-completion
export PYTHONSTARTUP=$HOME/.dotfiles/.pythonrc
# Overwrite ~/.ssh/config (symlinking doesn't work for some reason)
alias ssh="cat ~/.ssh/ssh-config/* > ~/.ssh/config; TERM=xterm ssh"
# Prefer coreutils binaries
PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"
eval `dircolors -b ~/.dotfiles/dircolors-solarized/dircolors.ansi-dark`
alias ls="ls --color=always"
alias grep="grep --color=always"
alias egrep="egrep --color=always"
# Magick wand tweaks see
# https://github.com/dahlia/wand/issues/14://github.com/dahlia/wand/issues/141
export MAGICK_HOME=/usr/local
export GOBIN=$GOPATH/bin