Solarized dircolors plugin for zsh.
Note that after installing this plugin, the terminal must be restarted or a new terminal session must be created.
-
Clone this repository somewhere on your computer. For example:
git clone --recursive https://github.com/joel-porquet/zsh-dircolors-solarized ~/.zsh/zsh-dircolors-solarized -
Add the following snippet to your
.zshrc:source ~/.zsh/zsh-dircolors-solarized/zsh-dircolors-solarized.zsh
I recommend using antigen, but it is also compatible with other plugin managers.
-
Add the following line in your
.zshrc:antigen bundle joel-porquet/zsh-dircolors-solarized.git
-
Clone this repository into
$ZSH_CUSTOM/plugins(by default~/.oh-my-zsh/custom/plugins)git clone --recursive https://github.com/joel-porquet/zsh-dircolors-solarized $ZSH_CUSTOM/plugins/zsh-dircolors-solarized -
Add the plugin to the list of plugins for Oh My Zsh to load:
plugins=(zsh-dircolors-solarized)
This plugin offers two commands:
-
lssolarizedwhich lists the available solarized themes. For now there are:dircolors.ansi-universal(universal theme for 16- and 256-color terminals)dircolors.ansi-dark(optimized version of universal for dark background)dircolors.ansi-light(optimized version of universal for light background)dircolors.256dark(degraded solarized dark theme)
-
setupsolarizedwhich installs a theme and saves the current configuration to the configuration file ($HOME/.zsh-dircolors.configby default). Without any argument,setupsolarizedwill use the themedircolors.ansi-universal.
setupsolarized must be run at least once in order to create the configuration file. After doing so, the plugin will automatically load your configuration each time a zsh session is started.
A required command for this library is dircolors. This command is not available on OSX. Instead, gdircolors
is provided through Homebrew.
- Install core-utils.
brew install coreutils - Add the following alias to your
.zshrcanywhere prior to where this plugin is installed.alias dircolors='gdircolors'