2 # ~/.bashrc: executed by bash(1) for non-login shells.
4 # If not running interactively, don't do anything
10 # system-wide bash completion
11 [ -f /etc/bash_completion ] && . /etc/bash_completion
13 # user-defined aliases
14 aliases_dir="$HOME/.bash/aliases.d"
15 if [[ -d $aliases_dir && -r $aliases_dir && -x $aliases_dir ]]; then
16 for i in "$aliases_dir"/*; do
17 [[ -f $i && -r $i ]] && . "$i"
23 [ -f ~/.bash/env ] && . ~/.bash/env
25 # LOCAL env variables, these settings are not meant to be shared
26 [ -f ~/.bash/env_local ] && . ~/.bash/env_local
28 # load git prompt support
29 [ -f /usr/lib/git-core/git-sh-prompt ] && . /usr/lib/git-core/git-sh-prompt
31 # load function to set custom shell prompts
32 if [ -f ~/.bash/bash_prompt/set_prompt ];
34 . ~/.bash/bash_prompt/set_prompt
36 # set a different prompt for the root user