bash.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sat, 06 Jun 2009 19:20:54 +0300
changeset 127 54418eba8bc7
parent 27 99584256fa88
child 221 97171c12b447
permissions -rw-r--r--
How to set bluetooth dongle "visible".

-*- 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.