. $HOME/.bashrc append () { # First remove the directory local IFS=':' local NEWPATH for DIR in $PATH; do if [ "$DIR" != "$1" ]; then NEWPATH=${NEWPATH:+$NEWPATH:}$DIR fi done # Then append the directory export PATH=$NEWPATH:$1 } append $HOME/bin append /usr/local/bin unset append export EDITOR=nano export BROWSER=firefox export RXVT_SOCKET=$HOME/.cache/.rxvt-unicode # Load X11 if [ -z "$DISPLAY" ] && [ $(tty) == /dev/vc/1 ]; then #startx -- -dpi 100 xinit openbox-session fi