Skip to content
Snippets Groups Projects
user avatar
connard authored
00d7b6ac
History
Name Last commit Last update
plugins/watch
themes/oh-my-viarezo
LICENSE
README.md

ViaRézo ZSH Theme

WTFPLv2 License

This is a theme for ZSH which mainly forks the historical theme used on VIA Centrale Réseaux servers. It can be used with ZSH frameworks such as Oh-My-ZSH.

General preview

VCS caption

Color State Variable
red there are unstaged files OHMYVIAREZO_VCS_COLOR_UNSTAGED
yellow there are staged files OHMYVIAREZO_VCS_COLOR_STAGED
blue there are untracked files OHMYVIAREZO_VCS_COLOR_UNTRACKED
cyan stash stack is not empty OHMYVIAREZO_VCS_COLOR_STASH
green working directory is clean OHMYVIAREZO_VCS_COLOR_CLEAN

Install for Oh-My-ZSH

In order to use this theme, you have to clone this repository in your Oh-My-ZSH custom directory (usually ~/.oh-my-zsh/custom):

git clone https://gitlab.viarezo.fr/ViaRezo/oh-my-viarezo.git $ZSH/custom

You then need to select this theme in your ~/.zshrc :

ZSH_THEME="oh-my-viarezo/viarezo"

To enable the custom plugin, juste add watch to the list of plugins in the ~/.zshrc:

plugins=(... watch)

The plugin will allow you to add watch in front of your last command by using Ctrl+Esc.

Customization

Time format defaults to %D{%H:%M}, but can be overwritten by setting the variable OHMYVIAREZO_TIME_FORMAT in your ~/.zshrc.

Hostname may be printed up to the first . or hidden with the variable OHMYVIAREZO_CONTEXT_HOSTNAME.

VCS theme can be set through the variable OHMYVIAREZO_VCS_THEME.

Unit testing

Oh-My-VIA uses ZUnit as unit testing framework.

To run the tests, just run:

zunit test

License

Unless explicitly stated to the contrary, all contents licensed under the WTFPL.