krib /.bashrc

# bashrc
# Basic options
TERM=xterm

# Prompt
export PS1="\[\e[34;1m\]>: \[\e[0m\]"

##################
#extract files eg: ex tarball.tar#
##################
ex () {
    if [ -f $1 ] ; then
        case $1 in
            *.tar.bz2)   tar xjf $1        ;;
            *.tar.gz)    tar xzf $1     ;;
            *.bz2)       bunzip2 $1       ;;
            *.rar)       rar x $1     ;;
            *.gz)        gunzip $1     ;;
            *.tar)       tar xf $1        ;;
            *.tbz2)      tar xjf $1      ;;
            *.tgz)       tar xzf $1       ;;
            *.zip)       unzip $1     ;;
            *.Z)         uncompress $1  ;;
            *.7z)        7z x $1    ;;
            *)           echo "'$1' cannot be extracted via extract()" ;;
        esac
    else
        echo "'$1' is not a valid file"
    fi
}

#################
#backup files--> ~/.backup/#
#################
bu ()
{
    if [ "`dirname $1`" == "." ]; then
        mkdir -p ~/.backup/`pwd`;
        cp $1 ~/.backup/`pwd`/$1-`date +%Y%m%d%H%M`.backup;
    else
        mkdir -p ~/.backup/`dirname $1`;
        cp $1 ~/.backup/$1-`date +%Y%m%d%H%M`.backup;
    fi
} 

alias koopa="ssh k***@bot.s******.fi"

# add colors and file type extensions 
alias ls='ls --color=always'

alias theme="gtk-chtheme"
alias gnomebaker="dbus-launch gnomebaker"
alias thunar="dbus-launch thunar"

alias shutdown='sudo shutdown' 

#cdo = cd open
#cdc = cd close 
alias cdo="eject"
alias cdc="eject -t" 

export OOO_FORCE_DESKTOP=gnome
export EDITOR=vim
export VISUAL=vim
alias vi=vim

export DISPLAY=:0.0

# WELCOME SCREEN
#######################################################
#
#clear
#echo -e `cat /etc/arch-release` - "Kernel: "`uname -r`;