![]() Prompt information on the right-hand side. ![]() Present the hostname in orange with black background, followed by a colon in white with black background, followed by the current working directory in bright blue with black background, followed by the dollar sign in white with black background. So, for example, the following two commands autoload -U colors & colorsĮxport PS1="%F\$ " ![]() The other key information is that for Foreground and bac Kground colors one can define what they want with F and K respectively. įor example, 214 is some kind of orange color. So, I thought I would try to give a broader summary and touch upon other very closely-related notions that allow more customization.įirst of all, here we can find 3-digit codes for various colors. The answer by Bryan Oakley above has a glitch as it has already been pointed out and the solution offered by Andrew Marshall though it does not carry the glitch, nevertheless it does not make it obvious for too much customization on the colors used.Īs macOS Catalina asks for zsh to be the default shell from now on, I think several more people may want to customize their prompt and might be coming here for an answer.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |