Tag Archives: Completion

When RubyMine code completion stops working

I recently switched from using RVM to rbenv. For some obscure reason the code completion in RubyMine stopped working. After looking in all the wrong places, it seemed I had to invalidate the caches.

You can do this by opening RubyMine and using: ‘File > Invalidate Caches’.

SSH completion

I hate it when I need to type the entire host I want to connect to. So I’ve added this to my ~/.bash_profile which autocompletes the ssh command based on my ~/.ssh/config

complete -W “$(awk ‘/^\s*Host\s*/ { sub(/^\s*Host /, “”); print; }’ ~/.ssh/config)” ssh

Thanks to @janmoesen for fixing the error.