From ec04ac54ffdcb63fdedfc21f3339ddd2d2ad72b5 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Sun, 12 Feb 2023 11:36:35 +0100 Subject: [PATCH] tmux: edit helper direnv goodness --- bin/tmux-edit-helper | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/tmux-edit-helper b/bin/tmux-edit-helper index 6d10f98..1742e56 100755 --- a/bin/tmux-edit-helper +++ b/bin/tmux-edit-helper @@ -1,6 +1,8 @@ #!/usr/bin/env bash set -fe -o pipefail +eval "$(direnv export bash)" + if [ -n "$1" ]; then _file=$(readlink -f "$@") else @@ -14,6 +16,7 @@ fi tmux select-window -t nvim 2>/dev/null || tmux new-window -S -n nvim \ + -e "BUILD_COMMAND=$BUILD_COMMAND" \ -e "GOPACKAGESDRIVER=$GOPACKAGESDRIVER" \ -e "GOFLAGS=$GOFLAGS" \ nvim --listen "$XDG_RUNTIME_DIR/nvim.sock"