path="$HOME/dotfiles"
echo "$path"

source $path/theme/prompt.sh
source $path/completions/ssh.completion.bash

export CLICOLOR=1
export EDITOR='vim -f'
export HISTFILESIZE=10000
export HISTSIZE=10000
export HISTCONTROL="ignoredups"
export HISTCONTROL=erasedups
export GIT_PS1_SHOWDIRTYSTATE=1
export AUTOFEATURE=true autotest
PROMPT_COMMAND='history -a'

export GREP_COLOR='1;33'

unset MAILCHECK

function load_all() {
	file_type=$1
	[ ! -d "$path/$file_type" ] && mkdir "$path/${file_type}"
	for src in $path/${file_type}/*; do
		filename="$(basename ${src})"
		[ ${filename:0:1} = "_" ] && continue
		dest="${path}/${file_type}/${filename}"
		source $dest
	done
}

echo ""
echo "loading aliases"
load_all aliases

echo ""
echo "loading completions"
load_all completions

path="$HOME/dotfiles"
echo "$path"

source $path/theme/prompt.sh
source $path/completions/ssh.completion.bash

if [ ! -f "$HOME/.gitconfig" ];
then
	echo "has no config"
	ln -s "$path/.gitconfig" $HOME/.gitconfig
fi

export CLICOLOR=1
export EDITOR='vim -f'
export HISTFILESIZE=10000
export HISTSIZE=10000
export HISTCONTROL="ignoredups"
export HISTCONTROL=erasedups
export GIT_PS1_SHOWDIRTYSTATE=1
export AUTOFEATURE=true autotest
PROMPT_COMMAND='history -a'

export GREP_COLOR='1;33'

unset MAILCHECK

function load_all() {
	file_type=$1
	[ ! -d "$path/$file_type" ] && mkdir "$path/${file_type}"
	for src in $path/${file_type}/*; do
		filename="$(basename ${src})"
		[ ${filename:0:1} = "_" ] && continue
		dest="${path}/${file_type}/${filename}"
		source $dest
	done
}

echo ""
echo "loading aliases"
load_all aliases

echo ""
echo "loading completions"
load_all completions

Copy gitconfig to home DIR if it doesn't already exist
Copy gitconfig to home DIR if it doesn't already exist
