#!/usr/local/bin/bash
#
# FILE  : dotfiles.core/home/.bashrc
# TARGET: ~/.bashrc
# AUTHOR: tgwil
#
# This is the core Bash configuration for all TGWIL accounts on all
# systems. It contains only those configurations which are applicable
# to (almost) every situation. Situational configurations should go
# in their respective situational repositories.


########################################################################
## Test for interactive shell
########################################################################
if [[ $- != *i* ]]; then
	return
fi


########################################################################
## Load ~/.bash_aliases
########################################################################
if [[ $- == *i* && -f ~/.bash_aliases ]]; then
	. ~/.bash_aliases
fi


########################################################################
## PATH
########################################################################
# ~/bin is used for personal scripts and other executables used only
# by this user.
PATH=$PATH:$HOME/bin


########################################################################
## GPG
########################################################################
GPG_TTY=$(tty)
export GPG_TTY


########################################################################
## Bash completion
########################################################################
[[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] \
    && source /usr/local/share/bash-completion/bash_completion.sh


########################################################################
## History
########################################################################
# Don't put duplicates or lines starting with spaces in history.
HISTCONTROL=ignoreboth

# Append to history file; don't overwrite
shopt -s histappend

# History size
HISTSIZE=100000
HISTFILESIZE=100000