I like things simple - if they are hard, I like to make them simple. Take my bash prompt (PS1) I want it to have colour, be easy to change (and mess around with), and well as show me if I'm on a remote machine (as I will tend to do a few dozen times a day). I also put it into its own file, which I call
.bash_prompt and to be called from .
bashrc or
.bash_profile.
So here is my
.bash_prompt file:
Edit to your personal preference then run:
No comments:
Post a Comment