The world's tiniest per-project build/test execution?

This commit is contained in:
Daniel Lundin 2022-07-28 10:55:15 +02:00
parent fa80daa419
commit dacae13daf
2 changed files with 5 additions and 1 deletions

View file

@ -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 ""

4
bin/tmux-build-helper Executable file
View file

@ -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