#export GIT_AUTHOR_NAME="Bart Trojanowski"
#export GIT_AUTHOR_EMAIL="bart@jukie.net"
#export GIT_COMMITTER_NAME="Bart Trojanowski"
#export GIT_COMMITTER_EMAIL="bart@jukie.net"

export HGUSER="Bart Trojanowski <bart@jukie.net>"
export EMAIL="bart@jukie.net"

#export PYTHONPATH=${HOME}/lib/python

if [ "$PS1" ]; then
        
        # ---------------------------------------------------------------------------
        # custom tab completion ....
        # 
        # cheatsheet...
        #	COMP_LINE
        #	COMP_POINT
        #	COMP_WORDS
        #	COMP_CWORD
        #	$1 - command completed
        #	$2 - word being completed
        #	$3 - word before the one being completed
        #	COMPREPLY - result
        
        # if hg is installed then build completion for hg commands
        if ! [ -f /etc/bash_completion.d/mercurial ] ; then
                if ( hg help > /dev/null 2>&1 ) ; then
                        HGCMDS="`hg help |/bin/grep '^ [a-z]' |cut -d ' ' -f 2 |xargs echo`"
                        complete -A file -W "$HGCMDS" hg
                fi
        fi
        
        # go to the top of the hg tree
        alias hgroot='cd `hg root`'
        
fi

