Skip to content

Instantly share code, notes, and snippets.

@satbirdd
Last active July 1, 2016 15:45
Show Gist options
  • Save satbirdd/afb166a9bfe98c7b8ea70329ef84ed46 to your computer and use it in GitHub Desktop.
Save satbirdd/afb166a9bfe98c7b8ea70329ef84ed46 to your computer and use it in GitHub Desktop.
gnome-terminal\
--tab\
--title="Rails"\
--working-directory="/home/username/works/project"\
-e "bash -c 'rails s;bash'"\
#the gnome-terminal closes after the somecommand terminates, the reason being gnome-terminal not running the bash as it's default shell.
#To get the bash prompt($) after the command command completes, you need to trigger it back.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment