What have you found to be useful in your .bash_profile ?
What tips do you have for people editing theirs ?
SEE ALSO: Useful BASH aliases ( ie: alias ...)
EDIT: I've removed my original .bash_profile added my current solution as an answer
|
5
|
What have you found to be useful in your What tips do you have for people editing theirs ?
EDIT: I've removed my original |
|||
|
|
I don't have a I find this prompt useful:
which sets the username, the slashes in the path and the prompt character ($ or #) to cyan for a regular user or red for root. It's done using This helps prevent accidents:
This helps with working with finding previously entered commands:
I like these as my default options for
|
|||
|
|
|
|
Sleek, but context sensitive.
And then this. Very useful
|
||||
|
|
|
I'm now importing my
I've adopted Dennis' (cheers Dennis) approach to colorizing the LOGON relative to priviledges:
|
||||
|
PS1is the environment variable that tells bash what your prompt should look like. the\033stuff is for pretty colors. (well, ANSI colors, anyway.) – ~quack Nov 1 at 10:39-pedantic! – Martinho Fernandes Nov 1 at 10:58\[and\], otherwise backspacing and line-wrapping will break. – grawity Nov 1 at 11:50