Guest User

Untitled

a guest
Apr 20th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. #! /bin/zsh
  2.  
  3. # $PROJECTDIR is set in .zshrc/bash_profile
  4. FIRSTDIR="$PROJECTDIR/first"
  5. SECONDDIR="$PROJECTDIR/second"
  6.  
  7. # starts a tmux session using iTerm's tmux mode
  8. # opens a new tab for each service and ensures that the name won't get overridden
  9. # runs the servers/queues/processes for each service
  10. # sends the command but doesn't run it for services I don't need all the time
  11. tmux -CC \
  12. set-option -g allow-rename off \; \
  13. new-session -n "FIRST" \; \
  14. send-keys "cd $FIRSTDIR && start the server" C-m \; \
  15. split-window -h \; \
  16. send-keys "cd $FIRSTDIR && start the queue server" \; \
  17. split-window -v \; \
  18. send-keys "cd $FIRSTDIR && start the helper service" C-m \; \
  19. new-window -n "SECOND" \; \
  20. send-keys "cd $SECONDDIR && start the server" C-m \; \
  21. split-window -h \; \
  22. send-keys "cd $SECONDDIR && start the queue server" C-m \; \
  23. split-window -v \; \
  24. send-keys "cd $SECONDDIR && start webpack/the asset service" \;
Add Comment
Please, Sign In to add comment