Set options immediately after sourcing the plugin before next precmd

So that you can access defaults to e.g. add elements to an existing
array.
This commit is contained in:
Eric Freese 2019-04-15 12:46:21 -06:00
parent 733abd4af0
commit e7c7efe2e2

View file

@ -11,8 +11,7 @@ RSpec.shared_context 'terminal session' do
around do |example|
before_sourcing.call
session.run_command(options.join('; '))
session.run_command('source zsh-autosuggestions.zsh')
session.run_command(['source zsh-autosuggestions.zsh', *options].join('; '))
after_sourcing.call
session.clear_screen