first say hello, I'm new to the site. I just installed Ubuntu 16.04.4 LTS on my computer and I still have to familiarize myself with the OS. One of the things I can not change is the appearance of LXTerminal, which comes from black background and white letters. I just wanted to change, for example, the color of the place where I am. Example: user @ user: ~ / Documents $ As I say, everything is blank. Only the directories that are blue change. I have seen several articles, but in none I find the editing tools that this console has. It shows me: Edit> Preferences> And there are only four tabs to choose from: Style, Show, Advanced, Shortcuts I can not find a way to give it a little appearance, I have seen that with commands it is also possible, but with what I saw so far I am not capable. If you can give me some idea or where to look for information. Thank you
2 Answers
If you want colours you have 2 easy options.
- Upgrade to 18.04, the new terminal has a funky colour scheme.
- Go to software and download terminal.
System tools-> Software, then search terminal. The store typically has pictures from which you can get a feel for its functionality.
First backup using cp ~/.bashrc ~/.bashrc-backup
Edit the file ~/.bashrc
and replace these lines:
if [ "$color_prompt" = yes ]; then
PS1='───────────────────────────────────────────────────────────────────────────────
${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='───────────────────────────────────────────────────────────────────────────────
${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
Save the file and reopen the terminal to see if you like it.
If you don't like it restore the backup with: cp ~/.bashrc-backup ~/.bashrc
and reopen the terminal.
What it looks like
NOTES:
- You don't need 18.04. This works in Ubuntu 16.04 and Lubuntu 16.04 (but the background there is black and the fonts are as well defined)
-
Thank you @WinEunuuchs2Unix, this is what I did but I have not replaced correctly since everything is still blank. What should I put so that the user and directory where I am are green and the ones I write blank? Sorry for the delay in responding. Jul 10, 2018 at 9:40
-
@MariCruzFernandez The contents of your
~/Documents
,~/Music
and~/Pictures
directories will all be blank until you save some new work into them. Tryll /etc
if you want to see a directory with files. Jul 10, 2018 at 9:55
echo $PS1
to view your current prompt value\ [\ e] 0; \ u @ \ h: \ w \ a \] $ {debian_choroot: + ($ debian_chroot)} \ u @ \ h: \ w \ $
No sé exactamente QUÉ y CÓMO modificar para poder cambiar los colores . Volveré a revisar la documentación que se encuentra en las preguntas y enlaces que me propuso. Gracias @guiverc por el apoyo. Si lo consigo, comento y puedo responder.bash
issue, and the same in almost any *nix