How override PS1, PS2.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 05 Feb 2009 09:48:05 +0200
changeset 27 99584256fa88
parent 20 ccbb0c9257bb
child 28 6c01de88f39e
How override PS1, PS2.
bash.rst
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bash.rst	Thu Feb 05 09:48:05 2009 +0200
@@ -0,0 +1,16 @@
+-*- outline -*-
+
+* How override PS1, PS2?
+
+When loading bash read ~/.bash_profile and ~/.bashrc.
+
+Put at end of these files
+
+  PS1='\u@\H$ '
+
+When xterm start bash - it start as nonlogin. So ~/.bash_profile and ~/.bashrc
+didn't read. To workaround this use
+
+  $ xterm -e bash -i -c "mc -x"
+
+That make bash interactive and init file readed.