[ -r ~/.aliases ] && . ~/.aliases

export HISTFILE=$HOME/.mksh_history
export HISTSIZE=4096                 

PS1=$'$PWD $(git_branch)\n (chroot) '

get_dir() {
	pwd | sed "s|^$HOME|~|"
}

git_branch() {
	BRANCH=$(git rev-parse --abbrev-ref HEAD 2> /dev/null)
	if [ ! "${BRANCH}" = "" ]; then
		printf ${BRANCH}
 	else
		printf ""
	fi
	unset BRANCH
}
