This is an old revision of the document!


Customizing Your Terminal's Prompt

You will need to edit your ~/.bashrc file using a text editor (e.g., emacs, vim, nano, gedit, …)

You will define a PS1 variable and export it.

MORE DIRECTIONS TO COME…

Here are some examples prompts:

PS1='[\u@\h \W]\$ '

# With Color:

PS1="\[\e[0;35m\]\u@\h \W\$ \[\e[00m\]"
PS1="\h:\W \u\$"
export PS1="\[\e[1;31m\]\h:\W \u\$ \[\e[00m\]"
labs/custom_prompt.1253815369.txt.gz · Last modified: 2009/09/24 18:02 by admin
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0