Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You can probably google for all the things you want to set. I would warn against using someone else's just in case it has errors in it or malicious code which may mess up your system
You want a color coded script with a nice prompt ...
This sounds like Legally Blonde where she had pink, scented resumes.
OK, sorry for my joke.
I know of nothing particular, but I'd first start web searching for these basic requirements and then be prepared to adapt what you find into some common profile which matches what you want for each.
For instance, you first find out how to get yourself a BASH way to do the prompt you desire. My assumption is that you wish not just a graphical prompt, but instead a prompting process, which queries the person, detects incorrect input, and guides the user so that their usage experience is properly bound, guided, and helpful. That would be one whole set of utilities, which you'd likely have to adapt to be specific to the script choices, per functions of each script; they would however be very similar for the most part.
Next you should search for how to colorize the text from within a script, or based upon the attributes of terminal prompts. This isn't as very easy as it sounds, I've seen people get it all working the way they wish, only to find that they get a different distribution, conditions, or machine, and it doesn't work. "Selecting" the colors is one part, "implementing" them is another part, and I'm saying that the implementation is more difficult - also saying that while it may be easy the first time, it may be more difficult to make that portable to many machines, logins, or other distributions. However I could be erring on the side of too much nay-saying here. Colorization is important, just not to me for my terminal prompts.
Then from that point you'll have two important portions. (1) A manner to prompt and adapt those prompts, and (2) a manner to colorize to some scheme. From there you can then take generic scripts to do functions you choose and add in these common features.
There are likely sample scripts or scripts on blogs in the web which you can copy and re-use, but I have no particular example sites to offer. I myself have usually searched for portions of what I've intended to accomplish, or written them myself and I have found that usually there are examples which cover part or most of what I'd like to do.
If I am reading the OP's post correctly he is looking for the output and prompts of his script to be colorized. This should be doable with echo commands.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.