rvm 0.1.27 → 0.1.29

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -1,7 +1,41 @@
1
1
 
2
2
  Usage
3
3
 
4
- rvm Action [Implementation] [Flags] [Options]
4
+ rvm [Flags] [Options] Action [Implementation[,Implementation[,...]]
5
+
6
+ Flags
7
+
8
+ --head - with update, updates rvm to git head version.
9
+ --rubygems - with update, updates rubygems for selected ruby
10
+ --default - with ruby select, sets a default ruby for new shells.
11
+ --debug - Toggle debug mode on for very verbose output.
12
+ --trace - Toggle trace mode on to see EVERYTHING rvm is doing.
13
+ --force - Force install, removes old install & source before install.
14
+ --summary - Used with rubydo to print out a summary of the commands run.
15
+ --jit - Used with rubinius install to build with JIT
16
+ --latest - with gemset --dump skips version strings for latest gem.
17
+ --gems - with uninstall/remove removes gems with the interpreter.
18
+ --reconfigure - Force ./configure on install even if Makefile already exists.
19
+
20
+
21
+ Options
22
+
23
+ -v|--version - Emit rvm version loaded for current shell
24
+ -l|--level - patch level to use with rvm use / install
25
+ --prefix - path for all rvm files (~/.rvm/), with trailing slash!
26
+ --bin - path for binaries to be placed (~/.rvm/bin/)
27
+ --source - src directory to use (~/.rvm/src/)
28
+ --archives - directory for downladed files (~/.rvm/archives/)
29
+ -S - Specify a script file to attempt to load and run (rubydo)
30
+ -e - Execute code from the command line.
31
+ -G|--gems - root gem path to use
32
+ --patch - With MRI Rubies you may specify one or more full paths to patches
33
+ for multiple, specify comma separated:
34
+ --patch /.../.../a.patch,/.../.../.../b.patch
35
+ -C|--configure - custom configure options. If you need to pass several configure
36
+ options then append them comma separated: -C --...,--...,--...
37
+ --nice - process niceness (for slow computers, default 0)
38
+ --ree-options - Options passed directly to ree's './installer' on the command line.
5
39
 
6
40
  Action
7
41
 
@@ -9,13 +43,16 @@ Action
9
43
  version - show the rvm version installed in rvm_path
10
44
  use - setup current shell to use a specific ruby version
11
45
  reload - reload rvm source itself (useful after changing rvm source)
12
- implode - removes rvm completely, i.e. everything in ~/.rvm
46
+ implode - (seppuku) removes the rvm installation completely.
47
+ This means everything in $rvm_path (~/.rvm).
48
+ This does not touch your profiles, which is why
49
+ there is an if around the sourcing scripts/rvm.
13
50
  update - upgrades rvm to the latest version.
14
51
  (If you experience bugs try this first with --head)
15
52
  reset - remove current and stored default & system settings.
16
53
  (If you experience odd behavior try this second)
17
- info - show information for current ruby
18
- debug - show environment & configuration information for *current* ruby
54
+ info - show the *current* environment information for current ruby
55
+ debug - show info plus additional information for common issues
19
56
 
20
57
  install - install one or many ruby versions
21
58
  See also: http://rvm.beginrescueend.com/rubies/installing/
@@ -43,50 +80,19 @@ Action
43
80
 
44
81
  Implementation
45
82
 
46
- * ruby - MRI/YARV Ruby (The Standard) {1.8.6,1.8.7,1.9.1,1.9.2...}
47
- jruby - JRuby {1.3.1,1.4.0}
48
- rbx - rubinius
49
- ree - ruby Enterprise Edition
50
- macruby - MacRuby (Mac OS X Only)
51
- maglev - GemStone Ruby
52
- ironruby - IronRuby
53
- mput - shyouhei(mput)'s github repository
83
+ * ruby - MRI/YARV Ruby (The Gold Standard) {1.8.6,1.8.7,1.9.1,1.9.2...}
84
+ jruby - JRuby, Ruby interpreter on the Java Virtual Machine.
85
+ rbx - Rubinius
86
+ ree - Ruby Enterprise Edition, MRI Ruby with several custom
87
+ patches for performance, stability, and memory.
88
+ macruby - MacRuby, insanely fast, can make real apps (Mac OS X Only).
89
+ maglev - GemStone Ruby, awesome persistent ruby object store.
90
+ ironruby - IronRuby, NOT supported yet. Looking for volunteers to help.
91
+ mput - shyouhei(mput)'s github repository, popular in Japan :)
54
92
  system - use the system ruby (eg. pre-rvm state)
55
93
  default - use rvm set default ruby and system if it hasn't been set.
56
94
  http://rvm.beginrescueend.com/rubies/default/
57
95
 
58
- Flags
59
-
60
- --head - with update, updates rvm to git head version.
61
- --rubygems - with update, updates rubygems for selected ruby
62
- --default - with ruby select, sets a default ruby for new shells.
63
- --debug - Toggle debug mode on for very verbose output.
64
- --force - Force install, removes old install & source before install.
65
- --summary - Used with rubydo to print out a summary of the commands run.
66
- --jit - Used with rubinius install to build with JIT
67
- --latest - with gemset --dump skips version strings for latest gem.
68
- --gems - with uninstall/remove removes gems with the interpreter.
69
- --reconfigure - Force ./configure on install even if Makefile already exists.
70
-
71
-
72
- Options
73
-
74
- -v|--version - Emit rvm version loaded for current shell
75
- -h|--help - Emit this output and exit
76
- -l|--level - patch level to use with rvm use / install
77
-
78
- --prefix - path for all rvm files (~/.rvm/), with trailing slash!
79
- --bin - path for binaries to be placed (~/.rvm/bin/)
80
- --source - src directory to use (~/.rvm/src/)
81
- --archives - directory for downladed files (~/.rvm/archives/)
82
- -S - Specify a script file to attempt to load and run (rubydo)
83
- -e - Execute code from the command line.
84
- -G|--gems - root gem path to use
85
- -C|--configure - custom configure options, comma separated
86
- default: --enable-shared=true
87
- --reconfigure - Force installer to re-run configure if already run
88
- --nice - process niceness (for slow computers, default 0)
89
- --ree-options - Options passed directly to ree's './installer' on the command line.
90
96
 
91
97
  Resources:
92
98
 
data/binscripts/rvm CHANGED
@@ -1,13 +1,22 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- if [[ -f /etc/rvmrc ]] ; then source /etc/rvmrc ; fi
4
- if [[ -f "$HOME/.rvmrc" ]] ; then source "$HOME/.rvmrc" ; fi
3
+ for rvmrc in /etc/rvmrc $HOME/.rvmrc ; do
4
+ if [[ -f "$rvmrc" ]] ; then
5
+ if grep -q '^\s*rvm .*$' $rvmrc ; then
6
+ echo -e "Error: $rvmrc is for rvm settings only.\nrvm CLI may NOT be called from within $rvmrc. \nSkipping the loading of $rvmrc"
7
+ exit 1
8
+ else
9
+ source "$rvmrc"
10
+ fi
11
+ fi
12
+ done
13
+
5
14
  if [[ -z "$rvm_prefix" ]] ; then unset rvm_prefix ; fi
6
15
  if [[ -z "$rvm_path" ]] ; then unset rvm_path ; fi
7
16
 
8
- if [[ -z "$rvm_prefix" ]] ; then
17
+ if [[ -z "$rvm_prefix" ]] ; then
9
18
  if [[ "root" = "$(whoami)" ]] ; then
10
- rvm_prefix="/usr/local"
19
+ rvm_prefix="/usr/local"
11
20
  else
12
21
  rvm_prefix="$HOME"
13
22
  fi
@@ -11,7 +11,8 @@ add(){
11
11
  }
12
12
 
13
13
  rvm_gemset_separator=${rvm_gemset_separator:-"+"}
14
- if [[ ! -z "$(which ruby 2>/dev/null | awk '/rvm/{print}')" ]] ; then
14
+ ruby=$(command -v ruby)
15
+ if [[ ! -z "$ruby" ]] && [[ ! -z "$(echo "$ruby" | awk '/rvm/{print}')" ]] ; then
15
16
  unset format
16
17
  while [[ $# -gt 0 ]] ; do
17
18
  token="$1" ; shift
@@ -34,7 +35,7 @@ if [[ ! -z "$(which ruby 2>/dev/null | awk '/rvm/{print}')" ]] ; then
34
35
  add "gemset"
35
36
  fi
36
37
 
37
- ruby_string=$(dirname "$(which ruby 2>/dev/null)" | xargs dirname | xargs basename)
38
+ ruby_string=$(dirname "$ruby" | xargs dirname | xargs basename)
38
39
 
39
40
  if [[ ! -z "$interpreter_flag" ]] ; then
40
41
  interpreter="$(echo $ruby_string | awk -F'-' '{print $1}')"
data/config/db CHANGED
@@ -23,18 +23,18 @@ ruby_1.9.2_patch_level=preview1
23
23
  ruby_1.8.5_patch_level=231
24
24
  ruby_1.8.6_patch_level=399
25
25
  ruby_1.8.7_patch_level=249
26
- jruby_version=1.4.0
26
+ jruby_version=1.5.0.RC1
27
27
  jruby_repo_url=git://github.com/jruby/jruby.git
28
- jruby_url=http://jruby.kenai.com/downloads
29
- macruby_version=0.5
28
+ jruby_url=http://jruby.org.s3.amazonaws.com/downloads
29
+ macruby_version=0.6
30
30
  macruby_url=http://www.macruby.org/files
31
31
  macruby_repo_url=git://git.macruby.org/macruby/MacRuby.git
32
- macruby_nightly_url=http://macruby.icoretech.org/latest/macruby_nightly-latest.pkg
33
- maglev_version=23191
32
+ macruby_nightly_url=http://www.macruby.org/files/nightlies/macruby_nightly-latest.pkg
33
+ maglev_version=23400
34
34
  maglev_url=http://glass-downloads.gemstone.com/maglev
35
35
  maglev_repo_url=git://github.com/MagLev/maglev.git
36
36
  rubinius_repo_url=git://github.com/evanphx/rubinius.git
37
37
  shyouhei_repo_url=git://github.com/shyouhei/ruby.git
38
- ironruby_version=1.0-rc2
38
+ ironruby_version=1.0
39
39
  ironruby_repo_url=git://github.com/ironruby/ironruby.git
40
- ironruby_url=http://github.com/ironruby/ironruby/tarball/
40
+ ironruby_1.0_url=http://rubyforge.org/frs/download.php/70179/
data/config/md5 CHANGED
@@ -22,39 +22,11 @@ ruby-enterprise-1.8.6-20090610.tar.gz=0bf66ee626918464a6eccdd83c99d63a
22
22
  ruby-enterprise-1.8.7-2009.10.tar.gz=3727eef7b6b1b2f31db7d091328d966e
23
23
  ruby-enterprise-1.8.7-20090928.tar.gz=ae00018ce89d95419dfde370fcd485ac
24
24
  rubygems-1.3.5.tgz=6e317335898e73beab15623cdd5f8cff
25
- MagLev-22683.Darwin-i386.tar.gz=bf58b17bc2ca62ac0ca9304e8909985c
26
- MagLev-22725.Darwin-i386.tar.gz=31f615a51c1bd02b002ba502d3af6b9b
27
- MagLev-22725.Linux-x86_64.tar.gz=b20d1ccf2071537c66d382079db947ae
28
- MagLev-22780.Darwin-i386.tar.gz=e0a23dff3a9c67a6873faf4b82727bd9
29
- MagLev-22780.Linux-x86_64.tar.gz=63e3acc32ef49c8198c811fcc29c52de
30
- GemStone-22725.Linux-x86_64.tar.gz=41747ab3ff3207a007026a8161e286bc
31
- GemStone-22683.Darwin-i386.tar.gz=62ff6be1a99ae708e97d6d43eb044e5a
32
- GemStone-22725.Darwin-i386.tar.gz=a183fd8dc593258a0ca067283414227a
33
- GemStone-22780.Darwin-i386.tar.gz=54d5c92153f9473e4f892f583706106c
34
- GemStone-22780.Linux-x86_64.tar.gz=97a511b4f4d835653d4a2c6ccef3e9e1
35
- GemStone-22804.Darwin-i386.tar.gz=0963cce504839169a601e27f916d101f
36
- GemStone-22804.Linux-x86_64.tar.gz=95058982c5d09a2ef77f4999a6683fbb
37
- MagLev-22804.Darwin-i386.tar.gz=930a85c821f8d80d22f2b53b03c18181
38
- MagLev-22804.Linux-x86_64.tar.gz=047d5b6404a5fbfad1c9a9243e6e67a7
39
- GemStone-22816.Darwin-i386.tar.gz=b12426c17b3925f1c8c7086a3285f15f
40
- GemStone-22816.Linux-x86_64.tar.gz=21d1e8e7a4b10ac8a1c199eb0cbfaec1
41
- MagLev-22816.Darwin-i386.tar.gz=b1b3e6530e90d7dcf36f81e097776643
42
- MagLev-22816.Linux-x86_64.tar.gz=424ca92c34cfce6d0da63170755b000c
43
- MagLev-22891.Darwin-i386.tar.gz=d8d3a8aaff1473422d6a30ecd2b2e9ff
44
- GemStone-22891.Darwin-i386.tar.gz=84080bda40c640aac9f19f5ea48403bf
45
- MagLev-22891.Linux-x86_64.tar.gz=f91f1bec1f3defb49323a70ec25504ef
46
- GemStone-22891.Linux-x86_64.tar.gz=5fd0d341a0eb586c9f804976cc290810
47
- GemStone-22907.Darwin-i386.tar.gz=c55d586da20dc4dd65da2e7f731f1d74
48
- GemStone-22907.Linux-x86_64.tar.gz=47c2d4527e3ea04715808048669d69ce
49
- MagLev-22907.Darwin-i386.tar.gz=8b7b351581611d076c7c9c1f90a04160
50
- MagLev-22907.Linux-x86_64.tar.gz=9f88d6bf8f607f5fdc1c476f7a6ab851
51
- GemStone-22949.Darwin-i386.tar.gz=2ac3417790bf813bab0632b1cf976109
52
- GemStone-22949.Linux-x86_64.tar.gz=5518cd8a8b8bd24d57cee04bc22fc7fa
53
- MagLev-22949.Darwin-i386.tar.gz=b90de35669eee6b270089606c0ceee58
54
- MagLev-22949.Linux-x86_64.tar.gz=4556d8b38e497124add43dcd24908bac
55
25
  MacRuby%200.5.zip=675454a8c7bc19d606d90a726e08427c
26
+ MacRuby%200.6.zip=a80afd3700c88cf95c539fc63b272faf
56
27
  jruby-bin-1.3.1.tar.gz=4a95db8fc93ed7219663fbede98b6117
57
28
  jruby-bin-1.4.0.tar.gz=f37322c18e9134e91e064aebb4baa4c7
29
+ jruby-bin-1.5.0.RC1.tar.gz=47b4ca2a21659d36a2775ade0a2534c4
58
30
  libiconv-1.13.1.tar.gz=7ab33ebd26687c744a37264a330bbe9a
59
31
  ncurses.tar.gz=cce05daf61a64501ef6cd8da1f727ec6
60
32
  openssl-0.9.8k.tar.gz=e555c6d58d276aec7fdc53363e338ab3
@@ -64,16 +36,12 @@ zlib-1.2.3.tar.gz=debc62758716a169df9f62e6ab2bc634
64
36
  curl-7.19.7.tar.gz=ecb2e37e45c9933e2a963cabe03670ab
65
37
  pkg-config-0.23.tar.gz=d922a88782b64441d06547632fd85744
66
38
  rubygems-1.3.6.tgz=789ca8e9ad1d4d3fe5f0534fcc038a0d
67
- ironruby-ironruby-c912e86.tar.gz=80708c23577ff9bf557f63f0f716fe26
68
- GemStone-23082.Darwin-i386.tar.gz=aa5f1768e5bad2bb687913c575f9cff6
69
- GemStone-23082.Linux-x86_64.tar.gz=7b7fd0df5d1deacf7aa12ccc9a94a33f
70
- MagLev-23082.Darwin-i386.tar.gz=d9027e7b7c8220573b1d3d588712ffc4
71
- MagLev-23082.Linux-x86_64.tar.gz=d63c4c94a2eaf19b051182e974413fef
72
- GemStone-23101.Darwin-i386.tar.gz=09b2c6fbb17b5571d31f2539779a2c24
73
- GemStone-23101.Linux-x86_64.tar.gz=9710555efbeb3563c607f09db1d33090
74
- MagLev-23101.Darwin-i386.tar.gz=281c9615cb2ef94f720b67fb893f1e26
75
- MagLev-23101.Linux-x86_64.tar.gz=3294165bd510129fcf591920573c3af1
76
- GemStone-23191.Darwin-i386.tar.gz=d3137c1996b9a599d58fa77b9c0573b0
77
- GemStone-23191.Linux-x86_64.tar.gz=030b8b4951168142436ff958c222f7f1
78
- MagLev-23191.Darwin-i386.tar.gz=04b71b607392da54cc7366616483cfc9
79
- MagLev-23191.Linux-x86_64.tar.gz=479917622dd8605393e43e7c18c3fa44
39
+ ironruby-1.0.zip=7a92888837b3507355ed391dbfc0ab83
40
+ GemStone-23351.Darwin-i386.tar.gz=218f90c4ed4198252ab4a98f655610ac
41
+ GemStone-23351.Linux-x86_64.tar.gz=ac142c16d8c0f4b73436ff6e2b51aa83
42
+ MagLev-23351.Darwin-i386.tar.gz=d91fa3afbe8adadca4308c05d649c677
43
+ MagLev-23351.Linux-x86_64.tar.gz=5f00eb87981854219fb949cf4e988781
44
+ GemStone-23400.Darwin-i386.tar.gz=0ae86a5c26577965b960c14efe328aaf
45
+ GemStone-23400.Linux-x86_64.tar.gz=6286c3955ce0c0d4829be99e8009cb52
46
+ MagLev-23400.Darwin-i386.tar.gz=ea16e4e8dc1f43b9c02f3d7dc3f8ce8f
47
+ MagLev-23400.Linux-x86_64.tar.gz=9119b79aa354e7eed49f1d53658a68be
data/help/alias ADDED
@@ -0,0 +1,46 @@
1
+ Alias
2
+
3
+ RVM allows you to alias you rubies for your convience and pleasure.
4
+
5
+ Usage
6
+ rvm [options] alias source destination
7
+
8
+ Source and Destination must be an RVM
9
+ ruby string representing an RVM installed ruby.
10
+
11
+ A gemset may be optionally included.
12
+
13
+ Creating Aliases
14
+
15
+ First select a RVM ruby.
16
+
17
+ ∴ rvm alias create ree-1.8.7-p2010.01 php
18
+
19
+ Using Aliases
20
+
21
+ Now that you have created an alias, you can use the alias in place of the longer rvm selector string.
22
+
23
+ ∴ rvm use php
24
+ ∴ ruby -v
25
+ ruby 1.8.7 (2009-12-24 patchlevel 248) [i686-darwin10.3.0], MBARI 0x6770, Ruby Enterprise Edition 2010.01
26
+
27
+ If you use any aliases that are rather funny, please hop in #rvm and let us know :)
28
+
29
+ Deleting Aliases
30
+
31
+ If you wish to delete an alias
32
+
33
+ ∴ rvm alias delete dotnet
34
+ Listing Aliases
35
+
36
+ You can also list all current aliases
37
+
38
+ ∴ rvm alias list
39
+ php => ree-1.8.7-p2010.01
40
+ lisp => maglev-head
41
+ python => rbx-head
42
+
43
+ Documentation:
44
+
45
+ http://rvm.beginrescueend.com/rubies/alias/
46
+
data/help/benchmark ADDED
@@ -0,0 +1,17 @@
1
+ Benchmark
2
+
3
+ If you have a bit of code that you would like to benchmark across several versions of ruby all at once you can now do this easily with RVM. Given:
4
+
5
+ ∴ cat increment.rb
6
+ y=0
7
+ 1000.times do |x|
8
+ y = x + 1
9
+ end
10
+ We can benchmark this code against multiple ruby versions very easily:
11
+
12
+ ∴ rvm 1.8.6,1.8.7,1.9.1,ree benchmark increment.rb
13
+
14
+
15
+ Documentation:
16
+
17
+ http://rvm.beginrescueend.com/set/benchmark/
data/help/debug ADDED
@@ -0,0 +1,8 @@
1
+ Debug
2
+
3
+ TODO
4
+
5
+ Documentation:
6
+
7
+ TODO
8
+
data/help/fetch ADDED
@@ -0,0 +1,5 @@
1
+ Fetch
2
+
3
+ Documentation:
4
+ TODO: For now see:
5
+ http://rvm.beginrescueend.com/rubies/installing/
data/help/gem ADDED
File without changes
data/help/gemdir ADDED
File without changes
data/help/gemset ADDED
File without changes
data/help/implode ADDED
File without changes
data/help/info ADDED
File without changes
data/help/install ADDED
File without changes
data/help/list ADDED
File without changes
data/help/monitor ADDED
File without changes
data/help/notes ADDED
File without changes
data/help/package ADDED
File without changes
data/help/rake ADDED
File without changes
data/help/remove ADDED
File without changes
data/help/reset ADDED
File without changes
data/help/ruby ADDED
File without changes
data/help/rvmrc ADDED
File without changes
data/help/specs ADDED
File without changes
data/help/srcdir ADDED
File without changes
data/help/tests ADDED
File without changes
data/help/uninstall ADDED
File without changes
data/help/update ADDED
File without changes
data/help/use ADDED
File without changes
data/install CHANGED
@@ -29,7 +29,7 @@ spinner() {
29
29
  index=$((($spinner_counter % 8)))
30
30
  echo -e -n "\r${array[$index]}"
31
31
  let "spinner_counter=spinner_counter+1"
32
- which perl > /dev/null 2>&1 && perl -e 'sleep 0.5'
32
+ command -v perl > /dev/null 2>&1 && perl -e 'sleep 0.5'
33
33
  }
34
34
 
35
35
  if echo "$*" | grep -q 'trace' ; then echo "$*" ; env | grep '^rvm_' ; set -x ; fi
@@ -56,6 +56,7 @@ fi
56
56
  if [[ -z "$rvm_path" ]] ; then rvm_path="${rvm_prefix}rvm" ; fi
57
57
 
58
58
  source scripts/initialize
59
+
59
60
  if grep -q 'scripts/rvm' $HOME/.bash* || grep -q 'scripts/rvm' $HOME/.zsh*; then
60
61
  if [[ -d "$rvm_path" ]] && [[ -s "${rvm_path}/scripts/rvm" ]] ; then
61
62
  export upgrade_flag=1
@@ -102,7 +103,7 @@ fi
102
103
 
103
104
  spinner
104
105
 
105
- mkdir -p $rvm_archives_path $rvm_src_path $rvm_log_path $rvm_bin_path $rvm_gems_path $rvm_rubies_path $rvm_config_path $rvm_hooks_path $rvm_tmp_path $rvm_symlink_path $HOME/.gem/cache
106
+ mkdir -p $rvm_archives_path $rvm_src_path $rvm_log_path $rvm_bin_path $rvm_gems_path $rvm_rubies_path $rvm_config_path $rvm_hooks_path $rvm_tmp_path
106
107
 
107
108
  for file in README LICENCE ; do
108
109
  spinner
@@ -112,7 +113,7 @@ done
112
113
  #
113
114
  # Scripts
114
115
  #
115
- for dir_name in config scripts examples lib hooks ; do
116
+ for dir_name in config scripts examples lib hooks help ; do
116
117
  spinner
117
118
  mkdir -p "$rvm_path/$dir_name"
118
119
  if [[ -d "$source_path/$dir_name" ]] ; then
@@ -265,17 +266,28 @@ if [[ "$upgrade_flag" -eq 1 ]] ; then
265
266
  else
266
267
  if [[ "root" != "$(whoami)" ]] ; then
267
268
  echo -e "\n$(tput setaf 1)You must now finish the install manually:$(tput sgr0)"
268
- echo -e "\n1) Place the folowing line at the end of your shell's loading files(.bashrc and then .bash_profile for bash and .zshrc for zsh), after all path/variable settings:"
269
+ echo -e "\n1) Place the folowing line at the end of your shell's loading files(.bashrc or .bash_profile for bash and .zshrc for zsh), after all path/variable settings:"
269
270
  echo -e "\n if [[ -s $rvm_path/scripts/rvm ]] ; then source $rvm_path/scripts/rvm ; fi"
270
271
  echo -e "\n2) Ensure that there is no 'return' from inside the .bashrc file. (otherwise rvm will be prevented from working properly)."
271
- echo -e "\n This means that if you see '[ -z "$PS1" ] && return' then you must remove it and split your .bashrc"
272
- echo -e "\n Put everything *except the return code line(s)* into your .bash_profile, and everything above that code in your .bashrc."
273
- echo -e "\n Be *sure* to REMOVE the '&& return' statement line."
272
+ echo -e "\n This means that if you see '[ -z "$PS1" ] && return' then you must change this line to:"
273
+ echo -e "\n if [[ ! -z "$PS1" ]] ; then"
274
+ echo -e "\n ... original content that was below the && return line ..."
275
+ echo -e "\n fi # <= be sure to close the if."
276
+ echo -e "\n #EOF .bashrc"
277
+ echo -e "\n Be absolutely *sure* to REMOVE the '&& return'."
274
278
  echo -e "\n If you wish to DRY up your config you can 'source ~/.bashrc' at the top of your .bash_profile."
275
- echo -e "\n4) Then $(tput setaf 1)CLOSE THIS SHELL$(tput sgr0) and open a new one in order to use rvm.\n"
279
+ echo -e "\n placing all non-interactive items in the .bashrc"
280
+ echo -e "\n3) Then $(tput setaf 1)CLOSE THIS SHELL$(tput sgr0) and open a new one in order to use rvm.\n"
276
281
  fi
277
282
  if [[ -s $HOME/.bashrc ]] && grep '&& return' $HOME/.bashrc ; then
278
- echo -e "\n\nWARNING: you have a 'return' statement in your .bashrc, likely this will cause untold havoc. Please remove it and refactor your profiles to be correct. If you have questions about this please visit #rvm on irc.freenode.net.\n"
283
+ echo -e "\n\nWARNING: you have a 'return' statement in your .bashrc, likely this will cause untold havoc.
284
+ This means that if you see '[ -z "$PS1" ] && return' then you must change this line to:
285
+ if [[ ! -z "$PS1" ]] ; then
286
+ ... original content that was below the && return line ...
287
+ fi # <= be sure to close the if.
288
+ #EOF .bashrc
289
+
290
+ If you have any questions about this please visit #rvm on irc.freenode.net.\n"
279
291
  fi
280
292
  echo -e "Installation of RVM to $rvm_path/ is complete.\n\n"
281
293
  fi