#-------------------------------------------------------------------------------
#
# PATH building
#
#-------------------------------------------------------------------------------

export LC_CTYPE=en_US.UTF-8

#
# System path
#
# echo $PATH

# Manually setting the original OS X path so that reloadprofile won't keep growing the PATH
# OSX_PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/usr/X11R6/bin

if [ -d /opt/boxen ] ; then
    BOXEN_PATH=/opt/boxen/rbenv/shims:/opt/boxen/rbenv/bin:/opt/boxen/rbenv/plugins/ruby-build/bin:/opt/boxen/bin:/opt/boxen/homebrew/bin:/opt/boxen/homebrew/sbin
    # TODO add ${BOXEN_PATH} to PATH conditionally
fi

# Prepend user bin dir to PATH
# TODO: Get rbenv to load path in correct order
export PATH=~/bin:/usr/local/bin:${PATH}:/usr/bin:/bin:/usr/sbin:/sbin

#-------------------------------------------------------------------------------
#
# PATH building
#
#-------------------------------------------------------------------------------

export LC_CTYPE=en_US.UTF-8

#
# System path
#
# echo $PATH

# Manually setting the original OS X path so that reloadprofile won't keep growing the PATH
# OSX_PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/usr/X11R6/bin

if [ -d /opt/boxen ] ; then
    BOXEN_PATH=/opt/boxen/rbenv/shims:/opt/boxen/rbenv/bin:/opt/boxen/rbenv/plugins/ruby-build/bin:/opt/boxen/bin:/opt/boxen/homebrew/bin:/opt/boxen/homebrew/sbin
    export PATH=${BOXEN_PATH}:${PATH}
fi

# Prepend user bin dir to PATH
# TODO: Get rbenv to load path in correct order
export PATH=~/bin:/usr/local/bin:${PATH}:/usr/bin:/bin:/usr/sbin:/sbin

Add BOXEN_PATH to PATH on systems where /opt/boxen exists
Add BOXEN_PATH to PATH on systems where /opt/boxen exists
