Sunday, November 30, 2014

Keep terminal open after running a command in terminal from shurtcut

You may need to keep terminal open after running a command in order to see the results, but when launched from a shortcut it closes unless you specify otherwise

First you need gnome-terminal and a profile with the setting to remain open after command: Edit, Profiles, create and select profile, edit, title and command, when command exits: hold terminal open.

The convenient way is to create a new profile called 'new1'.

The command to run by shortcut should be:

gnome-terminal --window-with-profile=new1 -e "whatever"

No comments:

Post a Comment