How do I change the hostname color in Linux?

Nguyên Lê

New member
How do I change the hostname color in Linux?
Answer
5 Answers
  1. Open the file: gedit ~/. bashrc .
  2. Look for the line with #force_color_prompt=yes and uncomment (delete the # ).
  3. Look for the line below if [ “$color_prompt” = yes ]; then that should looks like: PS1=’${debian_chroot:+($debian_chroot)}[33[01;32m]
    [email protected]
    [33[00m]:[33[01;34m]w[33[00m]$ ‘
 

Tìm kiếm

Back
Top