How to easily create a bash shell prompt for your personal use using a website interface.

Posted: August 17, 2013. At: 12:13 AM. This was 5 years ago. Post ID: 6134
Page permalink.
WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters. These cookies expire two weeks after they are set.

The bash $PS1 generator here: allows you to create a cool bash shell prompt with a minimum of fuss. You can add colors to various parts of the prompt and make it look very nice indeed. Check it out now and see what you think.

Here is one that I made. This uses tput to set colors instead of using escape sequences. This is better practice it seems.

# Custom bash prompt via
export PS1="\[$(tput bold)\]\[$(tput setaf 6)\]\t \[email protected]\h \W \\$:>\[$(tput sgr0)\]"

There is another website that allows the creation of a bash shell prompt: This one uses the older escape sequences instead of tput; but it is also a very good website.

If you want a simple drag and drop method of creating a useful bash shell prompt for Macintosh and Linux computers, then this website is excellent: This website lets you use simple drag and drop to create a complex bash prompt. The way this works is by dragging and dropping blocks to create the prompt. Very easy to use.

No comments have been made. Use this form to start the conversation :)

Leave a Reply