From dacae13daf65710a12c2f8e52cb38752c2a25191 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Thu, 28 Jul 2022 10:55:15 +0200 Subject: [PATCH] The world's tiniest per-project build/test execution? --- .tmux.conf | 2 +- bin/tmux-build-helper | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 bin/tmux-build-helper diff --git a/.tmux.conf b/.tmux.conf index a1e7379..f70050d 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -57,7 +57,7 @@ bind-key P 'capture-pane' \; capture-pane -S - \; save-buffer /tmp/tmux \; delet bind-key -n C-\\ copy-mode \; send -X search-backward " % "\; send -X search-again bind -n M-g display-popup -h '90%' -w '90%' -b rounded -d '#{pane_current_path}' -E "gitui" bind -n M-e display-popup -h '60%' -w '80%' -b rounded -d '#{pane_current_path}' -E "~/bin/nvim-edit-fzf" -bind -n M-m display-popup -h '90%' -w '90%' -b rounded -d '#{pane_current_path}' -E "bazel test ... --color=yes | bat --paging=always" +bind -n M-m display-popup -h '90%' -w '90%' -b rounded -d '#{pane_current_path}' -E "~/bin/tmux-build-helper" setw -g window-status-format "" setw -g window-status-current-format "" diff --git a/bin/tmux-build-helper b/bin/tmux-build-helper new file mode 100755 index 0000000..e27347c --- /dev/null +++ b/bin/tmux-build-helper @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +set -ef -o pipefail +eval "$(direnv export bash)" +eval "${BUILD_COMMAND:-echo 'BUILD_COMMAND not set'}" | bat --paging=always