krc /.bashrc

My .bashrc I have split out files for environmental variables and aliases and functions
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# If running interactively, then:
if [ "$PS1" ]; then
    
    # bash options
    # ignores dups (ignoredups) and commands preceded by a space (ignorespace)
    HISTCONTROL=ignoreboth

    HISTFILESIZE=10000
    HISTSIZE=10000

    # append history instead of overwriting 
    shopt -s histappend 
    # every time a prompt is displayed, append the previous line to history
    # and re-read history
    PROMPT_COMMAND='history -a; history -n; \$PROMPT_COMMAND'

    # check the window size after each command and, if necessary,
    # update the values of LINES and COLUMNS.
    #shopt -s checkwinsize
    
    # import external environmental variables (.evars)
    if [ -f ~/.evars ]; then
	. ~/.evars
    fi

    # import .aliases
    if [ -f ~/.aliases ]; then
	. ~/.aliases
    fi
    
    # import cdargs functions (cdargs = bookmarks for cd)
    if [ -f ~/bin/cdargs-bash.sh ]; then
	. ~/bin/cdargs-bash.sh
    fi

    # set vi mode (use readline/.inputrc instead)
    set -o vi

    # all files created 660, dirs 770
    umask 007

    # If this is an xterm set the title to user@host:dir
    case $TERM in
    xterm*|rxvt*)
       PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
        ;;
    *)
        ;;
    esac

    # set a fancy prompt (blue for admins)
    # add sbin to path for admins
    case "$USER" in
    (root|kellyadmin)
	PS1='\[\033[0;36m\]\u@\h:\w\$\[\033[0m\] '
        PATH=/usr/local/sbin:/usr/sbin:/sbin:"${PATH}"
	;;
    (*)
	PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
	;;
    esac

    # enable smart completion features 
    if [ -f /etc/bash_completion ]; then
      . /etc/bash_completion
    fi

    # enable command and file completion after sudo
    complete -f -c sudo

fi