Skip to content

Instantly share code, notes, and snippets.

@rpromyshlennikov
Last active May 22, 2019 12:56
Show Gist options
  • Save rpromyshlennikov/6266272df15cef2fff9d7a9f00be7a1b to your computer and use it in GitHub Desktop.
Save rpromyshlennikov/6266272df15cef2fff9d7a9f00be7a1b to your computer and use it in GitHub Desktop.
Start services in one xfce4-terminal window in diff tabs
#!/usr/bin/env bash
set -e
xfce4-terminal -e 'env PROMPT_COMMAND="unset PROMPT_COMMAND;docker start <docker_id>" bash'
xfce4-terminal --tab -T nService \
-e 'env PROMPT_COMMAND="unset PROMPT_COMMAND; cd work_dir/nService; source ../prepare_env_.sh; make build && ./nService -console" bash' \
--tab -T mService \
-e 'env PROMPT_COMMAND="unset PROMPT_COMMAND; cd work_dir/mService; source ../prepare_env_.sh; make build && ./mService -console" bash'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment