#!/bin/bash

function short_pwd()
{ 
	local PWD=${PWD/#$HOME/\~};
	local tmp=${PWD%/*/*};
	[[ ${#tmp} -ne ${#PWD} && ${#tmp} -gt 0 ]] \
		&& echo ...${PWD:${#tmp}} \
		|| echo $PWD; 
}
export PS1='$( if [ $? = 0 ]; then echo \[\e[32m\]:-\)\ ; else echo \[\e[31m\]:-\(\ ;fi;)\[\e[0m\]\u@\h:$(short_pwd)> '

export PATH=~/bin:$PATH
export MANPATH=~/man:$MANPATH

source ~/.aliases

export EDITOR=/usr/bin/vim
export LSCOLORS=gxfxcxdxbxegedabagacad

source ~/.webkit_login