• 3 Posts
  • 5 Comments
Joined 8 months ago
cake
Cake day: June 2nd, 2024

help-circle

  • If you’re using a descendant of Debian, you will find a line like this in your ~/.bashrc file:

    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$
    

    The 32m part controls the color of the username. (\u). 1 is red, 2 is green (as seen in the user and host part, \u@\h), 3 (as seen for the directory, \w) is blue.

    You can use this to distinguish different hosts by color.