shopt -s checkwinsize

case "$TERM" in
	xterm-color|*-256color) color_prompt=yes;;
esac

if [ "$color_prompt" = yes ]; then
	PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
	PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt

test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"

alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'

alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'

[ -f $HOME/.bash_aliases ] && . $HOME/.bash_aliases

export FROOT="/media/fat"
export GAMES="$FROOT/games"
export MEGADRIVE="$GAMES/MegaDrive"
export MEGACD="$GAMES/MegaCD"
export N64="$GAMES/N64"
export NEOGEO="$GAMES/NEOGEO"
export NEOGEOCD="$GAMES/NeoGeo-CD"
export NES="$GAMES/NES"
export PORTAL="$FROOT/_Games/_N64/_Portal"
export PSX="$GAMES/PSX"
export S32X="$GAMES/S32X"
export SATURN="$GAMES/Saturn"
export SCRIPTS="$FROOT/Scripts"
export SNES="$GAMES/SNES"