Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
55 lines (47 sloc) 1.93 KB
# Custom configuraion, change these!
# There are more configuration options in ./shell/exports
# I am in the process of moving all configuration here.
export DOTFILES=~/.dotfiles # Find the this folder
export WORK=Ennova # Where I work (Sets up CDPATH)
export MACBOOK=true # Shows battery in zsh prompt if true
# The search path for the cd command.
# This is a colon-separated list of directories in which the shell looks for
# destination directories specified by the cd command.
export CDPATH="$CDPATH:$HOME/Hub/Projects"
# Source the dotfiles
source $DOTFILES/shell/ # Misc functions
source $DOTFILES/shell/ # Load exports
source $DOTFILES/aliases/ # Load all the alias files
source $DOTFILES/shell/ # Colours
source $DOTFILES/shell/ # Smart pull function by @jasoncodes
if [ -f $DOTFILES/ ]; then
source $DOTFILES/ # Work related aliases etc.
# Load custom shell scripts (zsh or bash)
if [ $SHELL = '/bin/bash' ]; then
source $DOTFILES/bash/
export WHAT_SHELL='Using '`echo $SHELL`' shell.'
if [ $SHELL = "/bin/zsh" ]; then
source $DOTFILES/zsh/
export WHAT_SHELL='Using '`echo $SHELL`' shell.'
export WHAT_SHELL=`echo $SHELL`' does not have a custom config.'
# Set Apple resume directory
if [[ $TERM_PROGRAM == "Apple_Terminal" ]] && [[ -z "$INSIDE_EMACS" ]] {
function chpwd {
local SEARCH=' '
local REPLACE='%20'
printf '\e]7;%s\a' $PWD_URL
echo 'Custom config successfully loaded. '$WHAT_SHELL
# Ensure that rvm is the last thing sourced in all of your shell profiles,
# especially PATH are set. Otherwise, the values you set be trampled when you
# switch rubies.
source ~/.dotfiles/shell/