Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
I don’t remember where it is registered with them, but I also liked it when I first saw it - now it follows me in bashrc :) :
# echo $PS1
\[\033[01;31m\]\u\[\033[01;33m\]@\[\033[01;36m\]\h \[\033[01;33m\]\w \[\033[01;35m\]\$ \[\033[00m\]
I also recommend looking at zsh + ohmyzsh in the database for a lot of plugins with very convenient color and information solutions.
If it's about color output of files/directories, then read about dircolors
If it's about colors in the prompt, then this is the PS1 variable
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question