bpassos-zz / bullet-train-oh-my-zsh-theme

A oh-my-zsh shell theme based on the Powerline Vim plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bullet Train for oh-my-zsh Travis CI

Bullet Train is a oh-my-zsh shell theme based on the Powerline Vim plugin. It aims for simplicity, showing information only when it's relevant.

It currently shows:

  • Current Python virtualenv
  • Current Ruby version and gemset, through RVM
  • Current Node.js version, through NVM
  • Git status
  • Timestamp
  • Current directory

If you want add some new feature, of fix some bug, open an issue and lets hack together.

Preview

Preview

Other color schemes

It's better to use Bullet Train with a dark background color scheme. Below you can check Bullet Train with some popular dark color schemes.

Dark Background (iTerm2 default)

Preview

Tango Dark (iTerm2 default)

Preview

Solarized Dark

Preview

Requirements

In order to use the theme, you will first need:

Installing

For oh-my-zsh users

  1. Download the theme here

  2. Put the file bullet-train.zsh-theme in ~/.oh-my-zsh/themes/

  3. Configure the theme in your ~/.zshrc file:

ZSH_THEME="bullet-train"

For antigen users

Add the following snippet to your .zshrc somewhere after the line antigen use oh-my-zsh.

antigen theme https://github.com/caiogondim/bullet-train-oh-my-zsh-theme bullet-train

Options

Bullet Train is configurable. You can change colors and which segments you want or don't want to see. All options must be overridden in your .zshrc file.

The character used for prompt and if you want to be warned when running as root:

BULLETTRAIN_PROMPT_CHAR="\$"
BULLETTRAIN_PROMPT_ROOT=true

The status segment backgound, foreground color and visibility:

BULLETTRAIN_STATUS_SHOW=true
BULLETTRAIN_STATUS_BG=black
BULLETTRAIN_STATUS_FG=default

The time segment background, foreground color and visibility:

BULLETTRAIN_TIME_SHOW=true
BULLETTRAIN_TIME_BG=''
BULLETTRAIN_TIME_FG=''

Python virtualenv background, foreground color, visibility and the symbol used for the segment:

BULLETTRAIN_VIRTUALENV_SHOW=true
BULLETTRAIN_VIRTUALENV_BG=yellow
BULLETTRAIN_VIRTUALENV_FG=white
BULLETTRAIN_VIRTUALENV_PREFIX=🐍

Node.js background, foreground color, visibility and prefix for the segment:

BULLETTRAIN_NVM_SHOW=true
BULLETTRAIN_NVM_BG=green
BULLETTRAIN_NVM_FG=white
BULLETTRAIN_NVM_PREFIX=""

RMV backgound and foreground color, visibility and symbol used for the segment:

BULLETTRAIN_RVM_SHOW=true
BULLETTRAIN_RVM_BG=magenta
BULLETTRAIN_RVM_FG=white
BULLETTRAIN_RVM_PREFIX=♦️

Current directory background, foreground color and visibility:

BULLETTRAIN_DIR_SHOW=true
BULLETTRAIN_DIR_BG=blue
BULLETTRAIN_DIR_FG=white
BULLETTRAIN_DIR_EXTENDED=true

Git background, foreground color, visibility and details:

BULLETTRAIN_GIT_SHOW=true
BULLETTRAIN_GIT_BG=white
BULLETTRAIN_GIT_FG=black
BULLETTRAIN_GIT_EXTENDED=true

Git icons info:

BULLETTRAIN_GIT_CLEAN=""
BULLETTRAIN_GIT_DIRTY=""
BULLETTRAIN_GIT_ADDED="%F{green}✚%F{black}"
BULLETTRAIN_GIT_MODIFIED="%F{blue}✹%F{black}"
BULLETTRAIN_GIT_DELETED="%F{red}✖%F{black}"
BULLETTRAIN_GIT_UNTRACKED="%F{yellow}✭%F{black}"
BULLETTRAIN_GIT_RENAMED=""
BULLETTRAIN_GIT_UNMERGED=""

Contributors

That project was originally a fork from Powerline, but most of the code was later erased and its now more closely related to Agnoster. Below is a git summary of the project:

44  Caio Gondim
33  Jérémy Romey
07  Jocelyn Mallon
06  Jérémy Romey
05  Arthur Wang
04  Flavius Aspra
02  itsZero (Chien-An Cho)
02  wujtruj
01  Adrien Brault
01  yachi
01  Guillaume BINET
01  Joe Block
01  Kevin
01  Marius Krämer
01  illuminatis
01  krischer
01  m.kuehn

Credits

This theme is highly inspired by the following themes:

License

The MIT License (MIT)

Copyright (c) 2014 Caio Gondim

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

A oh-my-zsh shell theme based on the Powerline Vim plugin