VIA theme for ZSH
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.
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
.
Hostname may be printed up to the first .
or hidden with the variable
OHMYVIA_CONTEXT_HOSTNAME
.
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.