Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've been searching for bash_profile / bashrc themes on google for awhile but I'm not finding any kind of aggregation for themes. Most of them I find are small snippets like:

export TERM="xterm-color"
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced

For the record, this will be used for my Ubuntu bash profile, which the above doesn't even work for.

There are tons of VIM themes I've found, but no bash_profile. Any idea?

share|improve this question
    
What you describe above can't be really called a theme. You are just setting some environment variables. Are you looking to get programs to color their output more, or change the color definitions? –  zmode Oct 17 '12 at 6:42

1 Answer 1

up vote 2 down vote accepted

Your shell, per se, doesn't have a "theme".

The shell itself is more or less just the command prompt and the functions behind that. Every other color information will be determined by other programs. For example, the LSCOLORS you found is an environment variable for the ls builtin to use these colors in its output instead of plain text. Similarly, vim also just outputs certain color based on its scheme.

The programs will use color codes for that. These are "escape sequences". For more info, see: Bash Prompt HOWTO: Chapter 6. ANSI Escape Sequences: Colours.

But the main point where you set how these colors are interpreted is your terminal, not your shell. So if at all, you should find themes for your terminal. You could then modify that when ls would output "red", you'll actually want "aubergine" or similar. Any terminal emulator allows you to change the colors.

For example, using the Solarized theme in iTerm 2 for OS X, you can see that my "bright red" will actually turn dark orange, and my "black" is somewhat blueish:

iTerm colors

Finally, Generic Colouriser is a program that will allow you to colorize (almost) any command's output – even for commands that usually don't use colors at all, like traceroute:

share|improve this answer
    
Awesome. Just awesome. Using solarized dark right now! Thanks for the iTerm recommendation too! –  bob_cobb Oct 17 '12 at 7:23
    
Thank you, grc is a nice find! It is in the Arch Linux community repo, too. The config structure for this thing is so simple, and I'm gonna go play with it right now. !!! –  zero2cx Oct 18 '12 at 7:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.