-
-
Save dcode/95ddfa916ded1c57baa856dc526a290e to your computer and use it in GitHub Desktop.
# 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 |
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.
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
I was confused by this:
"
eval
dircolors ~/.dircolors
"