From c590ad1f98eac82e45fcf75ab01ccd37f253ff81 Mon Sep 17 00:00:00 2001 From: Trolli Schmittlauch Date: Tue, 14 May 2019 15:33:26 +0200 Subject: [PATCH] add tmux config to work in a direnv --- home/home.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/home/home.nix b/home/home.nix index 2711388..de8da13 100644 --- a/home/home.nix +++ b/home/home.nix @@ -270,4 +270,21 @@ in { enable = true; enableSshSupport = true; }; + + programs.tmux = { + enable = true; + keyMode = "vi"; + extraConfig = + # for direnv not messing up the environment + ''set-option -g update-environment "DIRENV_DIFF DIRENV_DIR DIRENV_WATCHES" + set-environment -gu DIRENV_DIFF + set-environment -gu DIRENV_DIR + set-environment -gu DIRENV_WATCHES + set-environment -gu DIRENV_LAYOUT + + bind-key -T copy-mode-vi 'v' send -X begin-selection + bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel''; + terminal = "screen-256color"; + }; + }