author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Thu, 25 Jun 2009 17:09:24 +0300 | |
changeset 144 | 761a47cf5400 |
parent 27 | 99584256fa88 |
child 221 | 97171c12b447 |
permissions | -rw-r--r-- |
27 | 1 |
-*- outline -*- |
2 |
||
3 |
* How override PS1, PS2? |
|
4 |
||
5 |
When loading bash read ~/.bash_profile and ~/.bashrc. |
|
6 |
||
7 |
Put at end of these files |
|
8 |
||
9 |
PS1='\u@\H$ ' |
|
10 |
||
11 |
When xterm start bash - it start as nonlogin. So ~/.bash_profile and ~/.bashrc |
|
12 |
didn't read. To workaround this use |
|
13 |
||
14 |
$ xterm -e bash -i -c "mc -x" |
|
15 |
||
16 |
That make bash interactive and init file readed. |