Actions

 Language:
 RSS flow:


A nice color prompt


Here are some nice color prompts.

To get a prompt, enter the command below the screenshot (or include it in the ~/.bashrc file)

Example 1


    PS1="\[\033[1;37m\][\[\033[0;37m\]$(date +%H:%M)\[\033[1;37m\]]
    [\[\033[1;32m\]\u\[\033[1;31m\]:/>\[\033[1;35m\]\W\[\033[1;37m\]]$ \[\033[0;0m\]"

Example 2


    PS1="\[\033[1;33m\][\[\033[0;32m\]09:56\[\033[1;33m\]][\[\033[1;31m\]\u\
    [\033[1;33m\]|\[\033[1;36m\]\W\[\033[1;33m\]]\[\033[0;37m\]#"
 

Go Back