Hello, on Dienstag, 22. Juli 2008, Carlos E. R. wrote: ...
which is a good enough approximation to what I want, thanks. I wrote it as a comment in my script before the chroot command, because after it, it doesn't execute (and I don't want to change the profile or bashrc):
Well, if you put it after the chroot command, it is executed after the chroot _exits_. (You don't see the result because your script ends afterwards.)
echo " Copy paste the next line to activate prompt change:"
Ouch. This sounds annoying and error-prone (I'm quite sure you will forget to change the prompt some day...)
echo "export PS1=$'\\[\E[1m\E[31m\\]NOT_\\h:\\w # \\[\E(B\E[m\\]'" echo chroot /otros/test_d/ /bin/bash --login
Add the "export PS1" command to /etc/bash.bashrc.local in your factory installation ;-) (create the file if it doesn't exist already) Regards, Christian Boltz --
Currently you get a SUSE Linux box for 60 bugs with 1 DVD, 5 CDs, Although there are actually more bugs available for SUSE LINUX 10.0, as you can easily see at bugzilla So I have to pay 60 bugs to get 851 bugs. Sounds like a really good deal. :) [Martin Sommer and > Robert Schiele in opensuse]
To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org