Skip to content

Instantly share code, notes, and snippets.

@chrisbjohannsen
Created August 28, 2019 20:35
Show Gist options
  • Save chrisbjohannsen/ecd72da1a511912bb920456f0fb912c5 to your computer and use it in GitHub Desktop.
Save chrisbjohannsen/ecd72da1a511912bb920456f0fb912c5 to your computer and use it in GitHub Desktop.
Tmux script to start a zookeeper/kafka environment on your machine
source-file ~/conf/dotfiles/.tmux.conf
new-session -s kafka-environment -n kafka -d
send-keys -t kafka-environment 'zookeeper-server-start ~/conf/zookeeper.properties' C-m
split-window -h -t kafka-environment
select-pane -T kafka-server -t kafka-environment:1.2
send-keys -t kafka-environment:1.2 'kafka-server-start ~/conf/server.properties' C-m
split-window -t kafka-environment:1.2 -v -p 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment