-
After logging into WSL, I get the nice color prompt, but it says my name computer name in it, like this:
I found a way to adjust this basically:
However, it strips the colors and other things so it ends up like this:
It blends in too much with everything else, and doesn't show things like pathing - like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Look into
Look at Your prompt |
Beta Was this translation helpful? Give feedback.
Look into
.bashrc
file located in your home directory forPS1
prompt settings:PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
Look at
\033[01;32m
which is an escape sequence, with\033[
being CSI (control sequence introducer) and32
is ANSI green. There's a good intro at https://en.wikipedia.org/wiki/ANSI_escape_codeYour prompt
PS1="\D{%Y-%m-%d-%I:%M%p} \u@$WSL_DISTRO_NAME:
has no colors defined.