Solarized Colour Theme in .bashrc
As a general practice, I try to keep this level of configuration in my Terminal Emulator. At most, I only use 2-3 Terminal Emulators (Terminal.app on my Mac, Gnome-terminal on my Linux machine, maybe something in PuTTY), so there are only 2-3 configurations to worry about.
Bashisms, and especially bash-colorisms have many tiny differences from OS to OS, Bash version to bash version and user to user (Are you going to use the same .bashrc for yourself and for root? On all systems? Probably not.) If you manage many systems, this solution becomes unscalable.
There will be many little tweaks to get this working on all of the hosts that you use, and it's difficult to keep .bashrc/.bash_profile in sync on all of those systems. Although "Get Settled in Quickly with movein.sh" can help you here.
Also see Colorizing your terminal and shell environment? on http://unix.stackexchange.com.
Related videos on Youtube
Comments
-
Rohit Kumar almost 2 years
I am looking to see if there is a way to implement the solarized them through just a
.bashrc
file. Would it be possible to do so? Has anyone tried this before?I guess I would start by modifying something similar to this:
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;35m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
-
Michael Lowman almost 13 yearsWhen you have a PS1 setting that's colorized, it's done with ANSI escape codes. You can use your terminal to specify what, say, a bold green should be displayed as. Within bash, you're limited to the options at that link