Where can I find bash_profile / bashrc themes?

2

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?

bob_cobb

Posted 2012-10-17T06:40:11.957

Reputation: 239

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? – dset0x – 2012-10-17T06:42:55.937

Answers

2

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:

slhck

Posted 2012-10-17T06:40:11.957

Reputation: 182 472

Awesome. Just awesome. Using solarized dark right now! Thanks for the iTerm recommendation too! – bob_cobb – 2012-10-17T07:23:33.743

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 – 2012-10-18T07:39:34.497