Skip to content

Instantly share code, notes, and snippets.

@makevoid
Created November 20, 2013 12:39
Show Gist options
  • Select an option

  • Save makevoid/7562513 to your computer and use it in GitHub Desktop.

Select an option

Save makevoid/7562513 to your computer and use it in GitHub Desktop.
gnome windows scripting (applescript like)
# execute gnome terminal running rack up
gnome-terminal -e "bash -c \"bundle exec rackup -p 3000 -o 0.0.0.0; read line\"" --tab-with-profile=Default
# closes and re executes rackup
wmctrl -c -F rack; gnome-terminal -e "bash -c \"bundle exec rackup -p 3000 -o 0.0.0.0; read line\"" --tab-with-profile=Default -t "rack"
# bind this command to a shortcut
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment