From d91fe487a695737eb2076d90d56f0b2b2181b5f1 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Wed, 21 Apr 2021 20:43:03 -0400 Subject: [PATCH] Add script to run via tmux Because ghcid reloads leaves ghost threads sometime, when reloading VSCode. And disable launch-when-open in VSCode for that reason. --- .vscode/tasks.json | 2 +- bin/run-via-tmux | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 bin/run-via-tmux diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 528443f..afb2ba5 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -14,7 +14,7 @@ "isDefault": true }, "runOptions": { - "runOn": "folderOpen" + // "runOn": "folderOpen" } } ] diff --git a/bin/run-via-tmux b/bin/run-via-tmux new file mode 100755 index 0000000..494763a --- /dev/null +++ b/bin/run-via-tmux @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +set -xe +PROJECT=$(basename `pwd`) +tmux new-session -A -s $PROJECT bin/run