Rails console slow tab completion?

Viewed 591

Running arch, when developing rails the console's tab completion for everything is incredibly slow. Even if the list it returns is inherently small.

User.n for instance shouldn't return a horrid number of options, but it will basically halt for upwards of 20 seconds before doing anything. Behavior repeats on every attempt. Any idea on how to fix?

1 Answers

I fixed this by removing the following lines from the file /etc/profile:

PATH="$PATH:$(ruby -e 'print Gem.user_dir')/bin" export GEM_HOME=$HOME/.gem export PATH

And adding the following to ~/.profile # make rails gems work PATH="$PATH:$(ruby -e 'print Gem.user_dir')/bin" export GEM_HOME=$HOME/.gem

Related