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/pszynk/zsh-dircolors ~/.zsh/zsh-dircolors
-
Add the following snippet to your
.zshrc
:source ~/.zsh/zsh-dircolors/zsh-dircolors.plugin.zsh
I recommend using antigen, but it is also compatible with other plugin managers.
-
Add the following line in your
.zshrc
:antigen bundle pszynk/zsh-dircolors.git
-
Clone this repository into
$ZSH_CUSTOM/plugins
(by default~/.oh-my-zsh/custom/plugins
)git clone --recursive git://github.com/pszynk/zsh-dircolors $ZSH_CUSTOM/plugins/zsh-dircolors
-
Add the plugin to the list of plugins for Oh My Zsh to load:
plugins=(zsh-dircolors)
This plugin offers two commands:
-
lsdircolors
which 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)
-
setupdircolors
which installs a theme and saves the current configuration to the configuration file ($HOME/.zsh-dircolors.config
by default). Without any argument,setupdircolors
will use the themedircolors.ansi-universal
.
setupdircolors
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.