I add this to my .bashrc: Code: export PS1="`awk '($1=="name") { sub(/^name /,"",$0) ; print; f=1} END{if (!f) exit 1}' /var/lib/bluetooth/[0-9A-Fa-f]*/config || echo "\\h"`:\w \\$ " Sets the prompt to contain the bluetooth name of the phone, if it has one, otherwise it sets it to be the hostname (which is not unique in maemo) myphone:/etc $
export PS1="`awk '($1=="name") { sub(/^name /,"",$0) ; print; f=1} END{if (!f) exit 1}' /var/lib/bluetooth/[0-9A-Fa-f]*/config || echo "\\h"`:\w \\$ "