Skip to content
Snippets Groups Projects
Select Git revision
  • 2dfeb1eef87d3976772a5a48a8c0608283063385
  • master default
  • watch-plugin
3 results

oh-my-viarezo

user avatar
Ayaz Badouraly authored
2dfeb1ee
History

VIA theme for ZSH

Build Status 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

Testing

See on Docker Hub for a testing image.

Info

VCS caption

Color State Variable
red there are unstaged files OHMYVIA_VCS_COLOR_UNSTAGED
yellow there are staged files OHMYVIA_VCS_COLOR_STAGED
blue there are untracked files OHMYVIA_VCS_COLOR_UNTRACKED
cyan stash stack is not empty OHMYVIA_VCS_COLOR_STASH
green working directory is clean OHMYVIA_VCS_COLOR_CLEAN

Usage

Install for Oh-My-ZSH

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

git clone https://github.com/badouralix/oh-my-via.git $ZSH/custom/themes/oh-my-via

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

ZSH_THEME="oh-my-via/via"

Customization

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

VCS theme can be set through the variable OHMYVIA_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.