#!/bin/bash

# If not running interactively, don't do anything
[ -z "$PS1" ] && return

# Source global definitions
if [ -f /etc/bashrc ]; then
  . /etc/bashrc
fi

# Declare dotfiles directory
DOTFILES_DIR=<%= File.dirname(File.expand_path(__FILE__)) %>

source ~/.bash/aliases
source ~/.bash/completions
source ~/.bash/paths
source ~/.bash/config

# use .localrc for settings specific to one system
if [ -f ~/.localrc ]; then
  source ~/.localrc
fi

unset DOTFILES_DIR

#!/bin/bash

# If not running interactively, don't do anything
[[ -z "$PS1" ]] && return

if [[ -f ~/.localrc.pre ]]; then
  source ~/.localrc.pre
fi

# Source global definitions
if [[ -f /etc/bashrc ]]; then
  . /etc/bashrc
fi

# Declare dotfiles directory
DOTFILES_DIR=<%= File.dirname(File.expand_path(__FILE__)) %>

source ~/.bash/aliases
source ~/.bash/completions
source ~/.bash/paths
source ~/.bash/config

# use .localrc for settings specific to one system
if [[ -f ~/.localrc ]]; then
  source ~/.localrc
fi

unset DOTFILES_DIR

Add possibility to source a ~/.localrc.pre file
Add possibility to source a ~/.localrc.pre file
