AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Change theme colors word 2011 mac2/12/2023 ![]() ![]() bash_profile file in your home dir on the server. bash_profile to make the username red, so I always see clearly if I'm logged in as root (handy to avoid mistakes if I have many terminal windows open).įor all my SSH accounts online I make sure to put the hostname in red, to distinguish if I'm in a local or remote terminal. I always add a slightly modified color-scheme in the root's. The colors are preceded by an escape sequence \e and defined by a color value, composed of and wrapped in an escaped sequence. To test, just run a source ~/.bash_profile to update your current terminal. To add the colored ls output, you can add alias ls="ls -G". in your ~/.bash_profile export TERM="xterm-color" Just tested this on an OS X Mountain Lion box.Įg. You can use the Linux based syntax in one of your startup scripts. ![]()
0 Comments
Read More
Leave a Reply. |