From 6dbe365609cdb58926b673c4fdcc1dd848434d75 Mon Sep 17 00:00:00 2001 From: shaoying Date: Thu, 16 Apr 2020 16:52:33 +0800 Subject: [PATCH] add miss.sh --- etc/miss.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 etc/miss.sh diff --git a/etc/miss.sh b/etc/miss.sh new file mode 100644 index 00000000..443c0b72 --- /dev/null +++ b/etc/miss.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +create() { + tmux new-session -d -s miss -n shy + tmux split-window -p 30 -t miss:shy.1 + tmux split-window -h -t miss:shy.2 + tmux send-keys -t miss:shy.3 "tail -f bin/boot.log" Enter + tmux send-keys -t miss:shy.2 "bin/ice.sh start serve shy" Enter + tmux send-keys -t miss:shy.1 "vim" Enter +} + +tmux has-session -t miss &>/dev/null || create +tmux attach-session -t miss +