User Tools

Site Tools


bash

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
bash [2010/11/30 07:04]
sebastian created
bash [2015/05/17 17:44] (current)
Line 1: Line 1:
 +====== Settings ======
 +===== Prompt =====
 +The Bash can show all kinds of information in the command prompt. For better readability you can use colours in the prompt to separate the parts.
 +
 +The following prompt contains user name, machine name and current working directory. It works on either white or black background.
 +<code bash>
 +export PS1='​\[\e[35;​1m\]\u\[\e[0m\]@\[\e[34;​1m\]\H:​ \[\e[0m\]\w> ​
 +'
 +</​code>​
 +
 ====== Howto ====== ====== Howto ======
 ===== How do I add a directory to the path only if it is not yet there? ===== ===== How do I add a directory to the path only if it is not yet there? =====
bash.txt ยท Last modified: 2015/05/17 17:44 (external edit)