View Single Post
Posts: 838 | Thanked: 292 times | Joined on Apr 2010
#5
Originally Posted by cpitchford View Post
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 $
that is scary. btw are you using bash? I wonder why my .bashrc command did not work.