View Single Post
Posts: 303 | Thanked: 175 times | Joined on Oct 2009 @ London UK
#4
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 $
 

The Following User Says Thank You to cpitchford For This Useful Post: