# ~/.bashrc

eval `dircolors -b`
alias d="ls --color"
alias ls="ls --color=auto"
alias ll="ls --color -l"

[ -z "$PS1" ] && return

shopt -s checkwinsize

if [ "$TERM" != "dumb" ]; then
    eval `dircolors -b`
    alias ls='ls --color=auto'
    #alias dir='ls --color=auto --format=vertical'
    #alias vdir='ls --color=auto --format=long'
fi

#case "$TERM" in
#xterm*|rxvt*)
#    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
#    ;;
#*)
#    ;;
#esac

case "$TERM" in
xterm*)
    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
    ;;
*)
    ;;
esac


if [ -z "$debian_chroot" -a -r /etc/debian_chroot ]; then
    debian_chroot=$(cat /etc/debian_chroot)
fi

ORANGE='\[\033[0;31m\]'
RED='\[\033[1;31m\]'
NONE='\[\033[0m\]'
TTY=$(tty | cut -d / -f3,4)
NO_COLOUR="\[\033[0m\]"
GREEN=`tput setaf 2`
BRIGHTGREEN=`tput bold; tput setaf 2`
YELLOW=`tput setaf 3`
BRIGHTYELLOW=`tput bold; tput setaf 3`
BLACK=`tput setaf 0`
RED=`tput setaf 1`
BRIGHTRED=`tput bold; tput setaf 1`
BLUE=`tput setaf 4`
MAGENTA=`tput setaf 5`
CYAN=`tput setaf 6`
NORM=`tput sgr0`

EKA='\[\e[31m\]'
TOKA='\[\033[1;31m\]'

if [ "$UID" = "0" ]; then
	ORANGE='\[\033[0;31m\]'
	RED='\[\033[1;31m\]'
	RED='\[\033[1;31m\]'
	ORANGE='\[\033[0;31m\]'
fi

##PS1="${EKA}\u\${NORM}${TOKA}@${NORM}${EKA}\h \w\n\$ ${NO_COLOUR}"
PS1="${EKA}\u\${NORM}${TOKA}@${NORM}${EKA}\h \w${NO_COLOUR}\n\$ "
#PS1="${EKA}\u\${NORM}${TOKA}@${NORM}${EKA}\h \w\n\$ ${NO_COLOUR}"
#PS1='${debian_chroot:+($debian_chroot)}${RED}\u${NORM}@${RED}\h:\w\n\$${NORM}'
##PS1='${RED}\u${NORM}@${RED}\h \w${NORM}\n\$ '

# (This is no longer needed from version 0.8 of the theme engine)
# export GTK2_RC_FILES=$HOME/.gtkrc-2.0
#export TERM=rxvt


if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi

#http_proxy=http://127.0.0.1:8118/
#HTTP_PROXY=$http_proxy
#export http_proxy HTTP_PROXY

export ALSA_OUTPUT_PORTS="128:0"

export GPGKEY=DE3C8F50

export PATH=$PATH:/home/katja/bin

HISTSIZE=10000
HISTFILESIZE=10000

export MOZCONFIG=$HOME/.mozconfig

###compix fusion didn't like this one:
###export XLIB_SKIP_ARGB_VISUALS=1

export KDE_NO_IPV6=true
