case $TERM in xterm*) export PROMPT_COMMAND='echo -ne "\033]30;${USER}@`hostname -s`:${PWD}\007\c"; history -a' ;; *) export PROMPT_COMMAND='history -a' ;; esac