Files containing the way I like my shell to look and run.
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Adding and customizing your own themes pretty much works the same as with plugins.
Themes are located in a themes folder and must end with .zsh-theme. The basename of the file is the name of the theme.
```
$ZSH_CUSTOM
└── themes
└── rocinante.zsh-theme
```
Then edit your .zshrc to use that theme.
```shell
ZSH_THEME="rocinante"
```
- Download zsh-autosuggestions by
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
- Download zsh-syntax-highlighting by
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
- Download solarized dir colors
git clone --recursive git://github.com/joel-porquet/zsh-dircolors-solarized $ZSH_CUSTOM/plugins/zsh-dircolors-solarized
-
vim ~/.zshrc
findplugins=(git)
-
Append
zsh-autosuggestions & zsh-syntax-highlighting
toplugins()
like this
plugins=(git zsh-autosuggestions zsh-syntax-highlighting zsh-dircolors-solarized)
- Reopen terminal
This plugin offers two commands:
-
lssolarized
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) -> My preference
-
setupsolarized
which installs a theme and saves the current configuration to the configuration file ($HOME/.zsh-dircolors.config
by default). Without any argument,setupsolarized
will 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
.zshrc
anywhere prior to where this plugin is installed.alias dircolors='gdircolors'