Kononenko.ws
Volodymyr Kononenko's Personal Web Site

Table of Contents

Bash Prompt

I started using zsh, but I will post my PS1 not to lose, because I like it.

Root prompt



PS1="\[\033[1;31m\][\[\033[0;31m\]\u\[\033[0;37m\]@\[\033[0;31m\]\h\[\033[1;31m\]] \[\033[0;37m\]\W \[\033[1;31m\]\$\[\033[0m\] "

User prompt



PS1="\[\033[1;32m\][\[\033[0;32m\]\u\[\033[0;37m\]@\[\033[0;32m\]\h\[\033[1;32m\]] \[\033[0;37m\]\W \[\033[1;32m\]\$\[\033[0m\] "



Update:
Nice prompt, suggested in comments. Posting it here. Thanks Anderson :-)


PS1="[\[$txtgrn\]\u\[$txtrst\]\[$bldblu\]@\[$txtrst\]\[$txtcyn\]\h\[$txtrst\] \[$bldblu\]\w\[$txtrst\]]\$ "
Posted: Volodymyr M. Kononenko on 2012-09-09 at 12:54
Modified: 2013-09-13 at 11:27
Tags:

Comments

Awesome prompt :) Here's the one I've been using for myself on all machine for years:

http://s2.postimg.org/r1gar8wvd/prompt.png

1 |
Anderson
| 2013/09/13 11:08 | reply

P.S. Here's .bashrc string to copy-paste:

PS1=“[\[$txtgrn\]\u\[$txtrst\]\[$bldblu\]@\[$txtrst\]\[$txtcyn\]\h\[$txtrst\] \[$bldblu\]\w\[$txtrst\]]\$ ”

2 |
Anderson
| 2013/09/13 11:09 | reply

Thanks Anderson, updated blog post with your prompt )

3 |
Volodymyr M. Kononenko
| 2013/09/13 11:28 | reply


  _____   ___    ___   _      __     __
 / ___/  / _ )  / _ \ | | /| / / __ / /
/ /__   / _  | / , _/ | |/ |/ / / // / 
\___/  /____/ /_/|_|  |__/|__/  \___/


Page Tools

Development and Design by Volodymyr Kononenko
Powered by DokuWiki