Source

dotfiles / dot.bashrc

# -*- mode: shell-script -*-

# not an interactive shell?
[ -z "$PS1" ] && return

# shell options
shopt -s checkwinsize   # check window size after each command execution
HISTCONTROL=ignoredups  # don't put duplicate line

[ -f "/etc/bash_completion" ] && . "/etc/bash_completion"
[ -f "/usr/local/etc/bash_completion" ] && . "/usr/local/etc/bash_completion"
which "lesspipe" >/dev/null 2>&1 && eval "$(lesspipe)"

if [[ -d ~/.bashrc.d ]]; then
    for name in `ls ~/.bashrc.d`; do
        . ~/.bashrc.d/"$name"
    done
fi