Commit Graph

656 Commits (01bdee42a21b797d2d7e0b0c032d30e23e1499c9)
 

Author SHA1 Message Date
Nate McCurdy 01bdee42a2 Improve the rbenv prompt by using `version-name`
Prior to this, the rbenv prompt only showed something if the
$RBENV_VERSION environment variable was set. This was not a complete
solution because rbenv can be configured locally, per directory, with
dotfiles. When using dotfiles, the $RBENV_VERSION variables is not set.

This fixes the issue by taking the output of the `rbenv version-name`
command which shows the real rbenv version being used based on any of
the 4 ways to change rbenv as shown here:

https://github.com/rbenv/rbenv#choosing-the-ruby-version

If the current version of Ruby being used is the same as the global
Ruby, nothing is shown.

This commit also adds documentation to the README that describes the
prompt.

Fixes issue #215
9 years ago
Ben Hilburn 2d196fa12f Merge pull request #211 from Falkor/feature/better_dirty_check
VCS dirty check even in subdirs
9 years ago
Sebastien Varrette 52982e3f63 mention to git_compare_version
Signed-off-by: Sebastien Varrette <Sebastien.Varrette@uni.lu>
9 years ago
Sebastien Varrette 0fd9d277f9 correct half-dirty detection -- restrict to untracked files
Signed-off-by: Sebastien Varrette <Sebastien.Varrette@uni.lu>
9 years ago
Sebastien Varrette 56bc1b3f47 dirty check even in subdirs
Signed-off-by: Sebastien Varrette <Sebastien.Varrette@uni.lu>
9 years ago
Ben Hilburn 1a05542901 Merge pull request #208 from dritter/fix_joining
Fix joining segments from #186
9 years ago
Dominik Ritter e9da3d5146 Fix joining segments 9 years ago
Ben Hilburn 9e191d4305 Pull PR #204 into `next`. Introduces new VCS state, `untracked` 9 years ago
Ben Hilburn 4bbff138fb Merging @theminor's changes from PR #204 9 years ago
Ben Hilburn 4897c795fa Merge branch 'master' into next 9 years ago
Ben Hilburn d5ac1735da Merge pull request #207 from gitter-badger/gitter-badge
Add a Gitter chat badge to README.md
9 years ago
Ben Hilburn dfd7ae1f1d Merge pull request #205 from dritter/dir_delimiter
Change default dir truncation delimitor to ellipsis
9 years ago
The Gitter Badger 43e6c80029 Add Gitter badge 9 years ago
Ben Hilburn 4f4a15de82 Merge pull request #198 from dritter/vcs_customizable
VCS-hooks customizable
9 years ago
Ben Hilburn 25bf6d60a0 Merge pull request #181 from dritter/split_up_ram_segment
Split up `ram` segment into `ram` and `swap`.
9 years ago
Ben Hilburn 65e9438210 Merge pull request #203 from dritter/beanstalk
Reworked the AWS-Beanstalk segment
9 years ago
Ben Hilburn 6072f1e56c Merge pull request #202 from dritter/join_conditional_segments
Allows the use of `_join` on conditional segments.
9 years ago
Dominik Ritter 54254600d1 Change default dir truncation delimitor to ellipsis 9 years ago
John Minor 177bfc9602 update CHANGELOG re new UNTRACKED state in vcs segment 9 years ago
John Minor d7c26513c8 Add "_UNTRACKED" option for _VCS to change colors - default yellow 9 years ago
theminor 3b7dfff7ea Add VCS_WORKDIR_HALF_DIRTY vrbl for unstaged files 9 years ago
Dominik Ritter 15665a4f95 Joining conditional segments now work as expected. If between the last
printed segment is a full but conditional segment, the joined one gets
promoted.
This fixes #186
9 years ago
Dominik Ritter ed28b8d26f Use explicit word splitting. No need to set SH_WORD_SPLIT 9 years ago
Dominik Ritter cd78c66997 First try: Now joined segments are promoted to "full" segments, if their
predecessor was conditional and had no output.
9 years ago
Dominik Ritter 930ae170a4 Made the VCS-hooks customizable. 9 years ago
Dominik Ritter 45184839f3 Added changelog entry. 9 years ago
Dominik Ritter eba3a3ca95 Reworked the AWS Elastic Beanstalk segment. 9 years ago
Dominik Ritter 6763826c4e More space for the Beanstalk-Icon. 9 years ago
Dominik Ritter a6174e31ea Added documentation for the AWS Beanstalk segment. 9 years ago
James Bowman af119c9406 Adding command prompt for AWS Elastic Beanstalk environment name. 9 years ago
Dominik Ritter 6aadf76397 Split up `ram` segment into `ram` and `swap`. 9 years ago
Ben Hilburn 472fb6f674 README: Arrghhhhh. Newlines in tables breaking things. 9 years ago
Ben Hilburn bd88fe9637 README: Documenting new background_jobs feature 9 years ago
Ben Hilburn f58da93481 README: Updating language about ZSH frameworks 9 years ago
Dominik Ritter c379cf2657 Syntax fix. 9 years ago
Ben Hilburn 657a097ef0 Merge pull request #201 from Kayant/zsh-frameworks
Add more ZSH framework instructions
9 years ago
Ben Hilburn 8172425cd2 Merge pull request #200 from V1rgul/next
background_jobs segment : add number of jobs if >1
9 years ago
v1rgul ce72ca3a16 add background_jobs change in changelog 9 years ago
v1rgul 29b346930b fix wc glitch on OSX 9 years ago
Anthony 684291e734 Fix spacing derp 9 years ago
Kayant 193e19f597 Add more ZSH framework instructions
*Zgen
*Antibody
*ZPM
*ZIM
9 years ago
v1rgul 11d00ce713 background_jobs: show number if verbose 9 years ago
V1rgul a0c664b174 Merge pull request #1 from bhilburn/next
Merge original repo
9 years ago
Kayant 0b1849d034 Improve zsh framework install description and add zplug 9 years ago
Ben Hilburn 67895cc5da README: Added a tl;dr 9 years ago
Ben Hilburn 24e7ee75fe Merge pull request #197 from dritter/changelog_additions
Changelog entries added for 'HOME_SUBFOLDER' state of the `dir` segment.
9 years ago
Dominik Ritter 13b7d26e76 Changelog entries added for 'HOME_SUBFOLDER' state of the `dir` segment. 9 years ago
Ben Hilburn dc4871f1a0 README: Minor cleanups 9 years ago
Ben Hilburn 02cb0fd88f README: Turns out you can't linebreak in tables. 9 years ago
Ben Hilburn 8a3c16ae24 README: Trying out tables to describe variables. 9 years ago