|
2010-11-01
, 20:27
|
|
Posts: 1,411 |
Thanked: 1,330 times |
Joined on Jan 2010
@ Tatooine
|
#2
|
|
2010-11-02
, 21:14
|
Posts: 838 |
Thanked: 292 times |
Joined on Apr 2010
|
#3
|
|
2010-11-03
, 01:03
|
Posts: 303 |
Thanked: 175 times |
Joined on Oct 2009
@ London UK
|
#4
|
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 \\$ "
The Following User Says Thank You to cpitchford For This Useful Post: | ||
|
2010-11-03
, 05:51
|
Posts: 838 |
Thanked: 292 times |
Joined on Apr 2010
|
#5
|
I add this to my .bashrc:
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)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 \\$ "
myphone:/etc $
|
2010-11-03
, 12:19
|
Posts: 303 |
Thanked: 175 times |
Joined on Oct 2009
@ London UK
|
#6
|
if [ -f ~/.bashrc ]; then . ~/.bashrc fi
|
2010-11-03
, 14:16
|
Posts: 838 |
Thanked: 292 times |
Joined on Apr 2010
|
#7
|
once in as user in bash I can type that and if changes to the old nicer busy box prompt but of course it gets lost. I tried putting it in .bashrc and exporting but that did not make any difference (unless I then manually typed source .bashrc). I also tried putting "source ~/.bashrc" in /etc/bash.bashrc, but that did not help either...
so in summary...using bash now for both user and root. happy with root prompt (kept the old prompt) but hate user prompt and want to get it back to my old prompt...without having to do another complete kernel and emmc reflash...
thanks...
Last edited by extendedping; 2010-11-01 at 20:28.