The latest version of irb introduced an autocomplete that is quite buggy and I don't generally like to be distracted by an autocomplete, any idea how I can disable it?
Related question: How to disable Pry autocomplete?
The latest version of irb introduced an autocomplete that is quite buggy and I don't generally like to be distracted by an autocomplete, any idea how I can disable it?
Related question: How to disable Pry autocomplete?
Try putting this in your ~/.irbrc
IRB.conf[:USE_AUTOCOMPLETE] = false
IRB.conf[:ECHO_ON_ASSIGNMENT] = true
–
Shudder ~/.irbrc
file so I created it and put IRB.conf[:USE_AUTOCOMPLETE] = false
and require "irb/completion"
in it, saved and restarted the terminal but it is still auto suggesting, can you tell me what I am missing. –
Flattie .irbrc
file in your repo directory and it will work for all Users and in Production/Staging/etc. –
Expenditure IRB.conf[:USE_AUTOCOMPLETE] = false
and it works. –
Gama .irbrc
file in my project's root folder did nothing. It does work when in my home directory though. –
Barbaresi We can pass the --noautocomplete
command line option when invoking IRB.
irb --noautocomplete
Alternatively we can set a configuration option in ~/.irbrc
or one of the other locations specified in the documentation
IRB.conf[:USE_AUTOCOMPLETE] = false
Starting a Rails console will respect this configuration but for a one-off we can provide the command line option.
Be sure to pass any Rails options before the --
rails console --sandbox -- --noautocomplete
If you using IRB remotely and do not have permission to update .irbrc
file, try this:
Reline.autocompletion = IRB.conf[:USE_AUTOCOMPLETE] = false
This assignment changes the behaviour of the current session.
May the source be with you.
© 2022 - 2024 — McMap. All rights reserved.