Added plenv (PERL) segment

* Added BULLETTRAIN_PERL_ shell variable checks to bullet-train.zsh-theme
* Added prompt_perl function
This commit is contained in:
Dale Davis
2016-02-05 13:39:17 -08:00
parent b71a54db69
commit a9fe003c1b
2 changed files with 37 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ It currently shows:
- Current Python virtualenv; when using Pyenv and no active virtualenv shows the current Python version the shell uses
- Current Ruby version using Rbenv or chruby; version and gemset when on RVM
- Current Node.js version, through NVM
- Current Perl version using plenv
- Git status
- Timestamp
- Current directory
@@ -179,6 +180,15 @@ or don't want to see. All options must be overridden in your **.zshrc** file.
|`BULLETTRAIN_GO_FG`|`white`|Foreground color
|`BULLETTRAIN_GO_PREFIX`|`go`|Prefix of the segment
### Perl
|Variable|Default|Meaning
|--------|-------|-------|
|`BULLETTRAIN_PERL_SHOW`|`false`|Show/hide that segment
|`BULLETTRAIN_PERL_BG`|`yellow`|Background color
|`BULLETTRAIN_PERL_FG`|`black`|Foreground color
|`BULLETTRAIN_PERL_PREFIX`|`🐪`|Prefix of the segment
### Dir
|Variable|Default|Meaning