how to execute command in a terminal window

Asked by Geoff Swartz on 2018-02-10

I thought this would be easy but obviously I'm doing something incorrectly. I have set up my layout and saved that so it's good that each time I start terminator, the layout persists. But, I'd like for a command to run in one of the terminal windows. When I paste this command into the terminal window's command field and then reopen terminator, that specific terminal just closes.

cd ~/workspace/shine && rvm use ruby-2.4.1@shine

Any idea what I'm doing wrong? Basically I'm just wanting to get my rails project fired up without having to type that in each time. Thanks.

Question information

English Edit question
Terminator Edit question
No assignee Edit question
Last query:
Last reply:

One thing that catches people out is that they expect the command to be run as if they typed it in to an open shell. It doesn't, it *replaces* the shell. So there is no bash or env vars underneath your command. This will often cause them to fail, exiting immediately, and so the terminal and pane close.

See for more detail and the correct way.

Can you help with this problem?

Provide an answer of your own, or ask Geoff Swartz for more information if necessary.

To post a message you must log in.