From 519e1b711e64231a4fc62539d3716d1148cdd464 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Sat, 7 Apr 2012 00:40:10 +0200 Subject: [PATCH] Kill tmux session after capturing buffer --- script/capture.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/script/capture.sh b/script/capture.sh index e80cfaf..a0463e6 100755 --- a/script/capture.sh +++ b/script/capture.sh @@ -12,3 +12,4 @@ tmux new -s $SESSION_NAME -d -x $COLS -y $LINES "$COMMAND" sleep $DELAY tmux capture-pane -t $SESSION_NAME tmux save-buffer - +tmux kill-session -t $SESSION_NAME &>/dev/null