X-Git-Url: http://id.pley.net/dotfiles.git/blobdiff_plain/2b82952cde87591df9919ee002e04584657e4e5d..7db6359521ae4d3e6435fe23e097c23926a9ef5f:/bash_login diff --git a/bash_login b/bash_login new file mode 100644 index 0000000..96b42af --- /dev/null +++ b/bash_login @@ -0,0 +1,21 @@ +#!/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