changeset 27 | 99584256fa88 |
child 221 | 97171c12b447 |
20:ccbb0c9257bb | 27:99584256fa88 |
---|---|
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. |