matchai / spacefish

๐Ÿš€๐ŸŸ The fish shell prompt for astronauts
https://spacefish.matchai.dev
MIT License
964 stars 79 forks source link

Add ruby version implementation #39

Closed tiffafoo closed 6 years ago

tiffafoo commented 6 years ago

Description

Shows Ruby version in directories that contain Gemfile, or Rakefile, or any other file with .rb extension.

Variable Default Meaning
SPACEFISH_RUBY_SHOW true Show Ruby section
SPACEFISH_RUBY_PREFIX $SPACEFISH_PROMPT_DEFAULT_PREFIX Prefix before Ruby section
SPACEFISH_RUBY_SUFFIX $SPACEFISH_PROMPT_DEFAULT_SUFFIX Suffix after Ruby section
SPACEFISH_RUBY_SYMBOL ๐Ÿ’Žยท Character to be shown before Ruby version
SPACEFISH_RUBY_COLOR red Color of Ruby section

Motivation and Context

For #35 (missing two)

Types of changes

Screenshots (if appropriate):

screen shot 2018-03-17 at 4 38 38 pm

How Has This Been Tested?

Tests with other ruby managers other than rvm is needed

Checklist:

To do: