Skip to content

Instantly share code, notes, and snippets.

@dcode
Last active July 1, 2016 02:18
Show Gist options
  • Save dcode/95ddfa916ded1c57baa856dc526a290e to your computer and use it in GitHub Desktop.
Save dcode/95ddfa916ded1c57baa856dc526a290e to your computer and use it in GitHub Desktop.
Customize gnome-terminal and bash for Solarized Dark
# 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
@kevinkeeneyjr
Copy link

I was confused by this:

"
eval dircolors ~/.dircolors

"

@dcode
Copy link
Author

dcode commented May 5, 2016

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 the dircolors command and passes the output to the eval 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.

@dcode
Copy link
Author

dcode commented May 5, 2016

I tweaked the curl line slightly since GitHub actually redirects the "direct" download link. The -L handles that.

@dcode
Copy link
Author

dcode commented Jul 1, 2016

@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