Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Add support for chruby #46

Merged
merged 1 commit into from
Jul 6, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Spacefish is a [Fish Shell][fish] port of [Spaceship][spaceship]; the minimalist
* Prompt character turns red if the last command exits with non-zero code.
* Execution time of the last command if it exceeds 5 seconds.
* Current Node.js version, through nvm/nodenv/node (`⬢`).
* Current Ruby version, through rvm/rbenv (`💎`).
* Current Ruby version, through rvm/rbenv/chruby (`💎`).
* Package version, if there's is a package in current directory (`📦`).
* Current Git branch and rich repo status:
* `?` — untracked changes;
Expand All @@ -39,7 +39,7 @@ Spacefish is a [Fish Shell][fish] port of [Spaceship][spaceship]; the minimalist
* Displaying hostname/username
* Indicator for jobs in the background (`✦`).
* Current Python pyenv (`🐍`).
* Current Ruby version, through chruby/asdf (`💎`).
* Current Ruby version, through asdf (`💎`).
* Optional exit-code of last command.
* Optional time stamps 12/24hr in format.

Expand Down
2 changes: 2 additions & 0 deletions functions/__sf_section_ruby.fish
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ function __sf_section_ruby -d "Show current version of Ruby"
set ruby_version (rvm-prompt i v g)
else if type -q rbenv
set ruby_version (rbenv version-name)
else if type -q chruby
set ruby_version $RUBY_AUTO_VERSION
else
return
end
Expand Down