added a check on 'restart' (thanks to Adam Spiers), added 'bash'
function (again, from Adam), disabled 'preexec' as its not something I
use and 'precmd' has the xterm title commented (again, not somthing I
use).