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

oh-my-viarezo

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Hadrien 'dric0' Patte authored
    Signed-off-by: default avatarHadrien 'dric0' Patte <dric0@larez.fr>
    d96ef744
    History
    Name Last commit Last update
    functions
    test
    LICENSE
    README.md
    via.zsh-theme

    VIA theme for ZSH

    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.

    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.