Hello, Carlos E. R. írta:
I'd like to have a different prompt on that chrooted xterm, so that I don't confuse it with my "stable's" xterms. Is it possible? The command "hostname" returns "nimrodel", not the real name of factory (minas-morgul).
I tried:
nimrodel:/ # export HOSTNAME=minas-morgul hostname nimrodel:/ #
which does not work. Anyway, I don't really need the hostname to change, the prompt would be enough. The command prompt is set at the start of the shell, so a later host name change does not help here. But you can change the prompt later any time. The variable in question is PS1:
czanik@bigone:~> set | grep PS1 PS1='$(ppwd \l)\u@\h:\w> ' czanik@bigone:~> export PS1='$(ppwd \l)\u@unstable:\w> ' czanik@unstable:~> Your friend is 'man bash', and search for 'PROMPTING'. Bye, CzP --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org