If you can help or wish to become one of the maintainers - just start helping.
You can find more RVM related projects at
RVM Github organization.
CARVIEW |
Select Language
HTTP/2 301
server: nginx/1.10.3 (Ubuntu)
content-type: text/html
location: https://rvm.io/workflow/prompt
strict-transport-security: max-age=63072000; includeSubDomains
x-frame-options: DENY
x-content-type-options: nosniff
accept-ranges: bytes
age: 0
date: Sun, 12 Oct 2025 05:46:40 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210063-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1760248000.833917,VS0,VE534
content-length: 194
HTTP/1.1 200 OK
Connection: keep-alive
Content-Length: 5049
Server: nginx/1.10.3 (Ubuntu)
Content-Type: text/html
Last-Modified: Fri, 15 Jan 2021 20:39:54 GMT
ETag: W/"6001fd9a-42af"
Strict-Transport-Security: max-age=63072000; includeSubDomains
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Encoding: gzip
Accept-Ranges: bytes
Age: 0
Date: Sun, 12 Oct 2025 05:46:40 GMT
Via: 1.1 varnish
X-Served-By: cache-bom-vanm7210027-BOM
X-Cache: MISS
X-Cache-Hits: 0
X-Timer: S1760248000.395602,VS0,VE535
RVM: Ruby Version Manager -
rvm-prompt
Support
RVM is maintained by community of volunteers, report issues to
RVM issues tracker.
Donation
Love RVM? Help us maintain RVM, a donation can help with it.
Want to help in other way, want to be a sponsor?
contact:
Michal Papis
Carbon Ads
rvm-prompt
To display the current ruby selection string in your prompt add this to your profile:
PS1="\$(~/.rvm/bin/rvm-prompt) $PS1"
By default rvm-prompt outputs the fully qualified ruby string necessary to select the particular ruby currently selected and nothing when system ruby is selected. You can change this default behavior and control the verbosity of rvm-prompt by combining the following parameters:
(i)nterpreter - interpreter abreviation (default) (v)ersion - version (default) (p)atchlevel - patch level (default) (g)emset - current gemset (default) (r)evision - revison (a)rchitecture - architecture (u)nicode - single unicode character representation of interpreter (s)ystem - echo "system" when using system ruby
Below are some examples of running rvm-prompt with various arguments on different rubies.
$ rvm 1.9.1 ; rvm-prompt i v p g # default ruby-1.9.1-p243 $ rvm 1.9.1@rails ; rvm-prompt i v p g # default ruby-1.9.1-p243@rails $ rvm ree-1.8.7 ; rvm-prompt i v ree-1.8.7 $ rvm jruby ; rvm-prompt v i 1.5.1-jruby $ rvm jruby ; rvm-prompt u ☯ $ rvm system ; rvm-prompt $ rvm system ; rvm-prompt s i v p system
ps1_functions
Recently there has been a pair programming session that turned out a useful bit of prompt setting code. It now resides in contrib/ so you can require it in your profiles as follows after sourcing RVM itself.source "$rvm_path/contrib/ps1_functions"Immediately after that you can customize your prompt by adding the following line
ps1_setThere is an article and screen cast associated with this in the community resources section.
RVM
- About
- Autolibs
- Basics
- Best Practices
- Cli
- Configuration
- Info
- Install
- Myths
- Offline
- Prerequisites
- Security
- Upgrading
Gemsets
- Basics
- Clear
- Copying
- Creating
- Deleting
- Emptying
- Exporting
- Global
- Ignoring
- Importing
- Initial
- Listing
- Using
∞
Copyright
© 2009-2011
Wayne E. Seguin
© 2011-2017
Michal Papis
© 2016-2017
Piotr Kuczynski
∞
Built with
Nanoc
∞
Cached by
Fastly
∞
Tested by
Travis CI