#!/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)> ' ssh-forget() { sed -i .bak "/^$1,/d" ~/.ssh/known_hosts } ssh-learn() { sed -i .bak "/^$1,/d" ~/.ssh/known_hosts ssh-keyscan -t rsa $1 >> ~/.ssh/known_hosts } export PATH=~/bin:$PATH export MANPATH=~/man:$MANPATH source ~/.aliases export EDITOR=/usr/bin/vim export LSCOLORS=gxfxcxdxbxegedabagacad source ~/.webkit_login