Edit: The console should remain open afterwards. I don't want to run a console command outside of the console.
I open a Rails Console like this from a Bash prompt: bundle exec rails console
Every time I open it, I need to run a command like this: SomeModule::SomeClass.someMethod('myString')
I'd like to combine these two commands into a single one that looks something like this: bundle exec rails console -s myString
(or more likely a compact Bash function).
I tried bundle exec rails console && SomeModule::SomeClass.someMethod('myString')
and bundle exec rails console; SomeModule::SomeClass.someMethod('myString')
but those did not work.