Last active
July 1, 2016 02:18
-
-
Save dcode/95ddfa916ded1c57baa856dc526a290e to your computer and use it in GitHub Desktop.
Customize gnome-terminal and bash for Solarized Dark
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set dircolors for bash `ls` friendly for a dark solarized terminal | |
curl -o ~/.dircolors -L https://raw.github.com/seebi/dircolors-solarized/master/dircolors.ansi-dark | |
eval `dircolors ~/.dircolors` | |
# Checkout gnome-terminal solarized config | |
cd /tmp | |
git clone https://github.com/Anthony25/gnome-terminal-colors-solarized.git | |
cd gnome-terminal-colors-solarized | |
./set_dark.sh | |
cd /tmp; rm -rf gnome-terminal-colors-solarized |
I tweaked the curl line slightly since GitHub actually redirects the "direct" download link. The -L handles that.
@kevinkeeneyjr I was re-setting this up on a mac and realized that the dircolors
command isn't available by default. I found a blog post [1] blog entry helpful to get it setup using homebrew.
[1] http://www.conrad.id.au/2013/07/making-mac-os-x-usable-part-1-terminal.html
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dircolors
is a command that reads the file we just downloaded to~/.dircolors
and it translates it for whatever shell you're using.eval
is a shell built-in command that runs whatever you give it. The backticks runs thedircolors
command and passes the output to theeval
command.You can just copy and paste this part. Obviously on a Mac you needn't do lines 6 through 10. Installing iTerm2 and selecting the Solarized Dark theme is sufficient.