Skip to content

Instantly share code, notes, and snippets.

@martinisoft
Created September 23, 2011 15:57
Show Gist options
  • Save martinisoft/1237739 to your computer and use it in GitHub Desktop.
Save martinisoft/1237739 to your computer and use it in GitHub Desktop.
rvm bash autocomplete issue
Last 4 lines of my .bashrc:
# RVM
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
# RVM Autocomplete
[[ -r $rvm_path/scripts/completion ]] && . $rvm_path/scripts/completion
Output when I type: rvm install [tab]
gort:~ martinisoft$ rvm install sed: 1: "\\n s/^(\([^)]*\))\(. ...": newline can not be used as a string delimiter
RVM Info Output
gort:~ martinisoft$ rvm info
ruby-1.9.2-p290:
system:
uname: "Darwin gort.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386"
bash: "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)"
zsh: "/bin/zsh => zsh 4.3.9 (i386-apple-darwin10.0)"
rvm:
version: "rvm 1.8.4 by Wayne E. Seguin ([email protected]) [https://rvm.beginrescueend.com/]"
ruby:
interpreter: "ruby"
version: "1.9.2p290"
date: "2011-07-09"
platform: "x86_64-darwin10.8.0"
patchlevel: "2011-07-09 revision 32553"
full_version: "ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin10.8.0]"
homes:
gem: "/Users/martinisoft/.rvm/gems/ruby-1.9.2-p290"
ruby: "/Users/martinisoft/.rvm/rubies/ruby-1.9.2-p290"
binaries:
ruby: "/Users/martinisoft/.rvm/rubies/ruby-1.9.2-p290/bin/ruby"
irb: "/Users/martinisoft/.rvm/rubies/ruby-1.9.2-p290/bin/irb"
gem: "/Users/martinisoft/.rvm/rubies/ruby-1.9.2-p290/bin/gem"
rake: "/Users/martinisoft/.rvm/rubies/ruby-1.9.2-p290/bin/rake"
environment:
PATH: "/Users/martinisoft/.rvm/gems/ruby-1.9.2-p290/bin:/Users/martinisoft/.rvm/gems/ruby-1.9.2-p290@global/bin:/Users/martinisoft/.rvm/rubies/ruby-1.9.2-p290/bin:/Users/martinisoft/.rvm/bin:/usr/local/bin:/usr/local/sbin:/Users/martinisoft/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin"
GEM_HOME: "/Users/martinisoft/.rvm/gems/ruby-1.9.2-p290"
GEM_PATH: "/Users/martinisoft/.rvm/gems/ruby-1.9.2-p290:/Users/martinisoft/.rvm/gems/ruby-1.9.2-p290@global"
MY_RUBY_HOME: "/Users/martinisoft/.rvm/rubies/ruby-1.9.2-p290"
IRBRC: "/Users/martinisoft/.rvm/rubies/ruby-1.9.2-p290/.irbrc"
RUBYOPT: ""
gemset: ""
Output from gem list:
gort:~ martinisoft$ gem list
*** LOCAL GEMS ***
bundler (1.0.18)
coderay (1.0.0)
method_source (0.6.5)
pry (0.9.6)
rake (0.9.2)
ruby_parser (2.3.1)
sexp_processor (3.0.7)
slop (2.1.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment