|
2012-01-22
, 23:50
|
Posts: 986 |
Thanked: 1,526 times |
Joined on Jul 2010
|
#2
|
|
2012-01-22
, 23:53
|
Posts: 986 |
Thanked: 1,526 times |
Joined on Jul 2010
|
#3
|
(.*)PS1=(.*):(.*)
$1PS1=$x:$2
\h-40-4_PR_005
The Following User Says Thank You to wolke For This Useful Post: | ||
|
2012-01-23
, 07:57
|
Posts: 36 |
Thanked: 36 times |
Joined on Nov 2011
@ KL, Msia
|
#4
|
|
2012-01-23
, 17:19
|
Posts: 986 |
Thanked: 1,526 times |
Joined on Jul 2010
|
#5
|
Hi,
It is possible that there is a watchdog service running in the background that prevents bashrc from being modified.
But more importantly, why are you tinkering with bashrc? You could just write your own script, and set whatever paths you want there.
|
2012-01-23
, 20:59
|
Posts: 1,269 |
Thanked: 3,961 times |
Joined on May 2011
@ Brazil
|
#6
|
# Set colors for prompt # col_bold="\033[1m" col_red="\033[1;31m" col_green="\033[1;32m" col_yellow="\033[1;33m" col_blue="\033[1;34m" col_purple="\033[1;35m" col_cyan="\033[1;36m" col_normal="\033[0;39m" # Prompt Settings # PS1 PS1="\[${col_cyan}\]\u@\h:\[${col_blue}\]\w\[${col_normal}\]\$ " export PS1
|
2012-01-23
, 21:24
|
Posts: 986 |
Thanked: 1,526 times |
Joined on Jul 2010
|
#7
|
I also use bash (but not as default shell) on Nokia N9, and the .bashrc is never rewritten. My PS1 line :
Code:# Set colors for prompt # col_bold="\033[1m" col_red="\033[1;31m" col_green="\033[1;32m" col_yellow="\033[1;33m" col_blue="\033[1;34m" col_purple="\033[1;35m" col_cyan="\033[1;36m" col_normal="\033[0;39m" # Prompt Settings # PS1 PS1="\[${col_cyan}\]\u@\h:\[${col_blue}\]\w\[${col_normal}\]\$ " export PS1
|
2012-01-25
, 14:57
|
Posts: 1,269 |
Thanked: 3,961 times |
Joined on May 2011
@ Brazil
|
#8
|
The Following User Says Thank You to rcolistete For This Useful Post: | ||
|
2012-01-25
, 18:33
|
Posts: 986 |
Thanked: 1,526 times |
Joined on Jul 2010
|
#9
|
The Following User Says Thank You to wolke For This Useful Post: | ||
something appears to touch just the line that sets PS1. this could be me somehow, but i really dont think so....
which is really annoying, since it is malformed if you dont have a closing single quote {which i dont, as above}.
im going to add another line that sets it more obliquely until i figure out WHAT is setting it and kill it.
EDIT: a workaround is to do COLON=':', and then use $COLON instead of ':' in the line that sets the PS1.
this is not a solution, though, because the replace pattern is so general it could produce all sorts of, erm, interesting behaviour, like bricking my n9.
Last edited by wolke; 2012-01-23 at 17:22.