You are not logged in.
Well, I chose Arch as my first OS because of its hyper-customizability. I configured my terminal close to perfection: transparency check, ttf-dejavu font check, directory colours check... The only thing I can't figure out how to do is colour my
[user@arch ~]$a certain way. For example, I'd like to have 'user@arch' coloured red and '~' (and all other directories) coloured blue. Then, my customization will be complete. Please help me. Thank you in advance.
Last edited by smerdjakov (2018-05-02 15:07:06)
Offline
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Could you please be more specific? As far as I can tell, the tutorial only touches on how to customize specific words in the prompt. However, I'm looking for a dynamic solution. If you could post a script that would colour:
[<name of the user>@<name of the system> <directory>]$a certain way, that would be great. For example
<name of the user> = colour_1
<name of the system> = colour_2
<directory> = colour_3That's the solution I'm looking for.
Last edited by smerdjakov (2018-05-02 11:57:05)
Offline
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I'm not very fond of the Arch syntax yet. Which answer on the thread would server my purpose best?
Offline
All of them. Any of them. Make an effort and don't be a help vampire.
https://wiki.archlinux.org/index.php/Co … ow_to_post
http://slash7.com/2006/12/22/vampires/
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Well, you don't have to be insulting. I'm new to both the community and to the OS itself, so my questions won't be formatted perfectly (as could be expected). Well, I managed. To anyone who seeks to optimize their terminal in the likeness of Kali GNU/Linux, here's what you want to run to get the correct output for a user ($):
PS1='\[\e[1;31m\]\u@\h\[\e[m\]:\[\e[1;34m\]\W\[\e[m\]$ 'And for root (#)
PS1='\[\e[1;31m\]\u@\h\[\e[m\]:\[\e[1;34m\]\W\[\e[m\]# 'I'm marking my question as solved.
Offline
He's not insulting, the notion is common
You'll get help here (referencing the relevant wiki or some examples), but we're not going to hold your hand, noob or not.
You *are* required to make an effort to understand what you do. If you want pre-fabbed "solutions", you're using the wrong distro.
Offline