diff --git a/config/default.nix b/config/default.nix index 12ff968b..8ce97f8a 100644 --- a/config/default.nix +++ b/config/default.nix @@ -82,6 +82,29 @@ lib.mkMerge [ programs = { fzf.keybindings = true; + tmux = { + aggressiveResize = true; + baseIndex = 0; + clock24 = true; + historyLimit = 50000; + terminal = "xterm-256color"; + extraConfig = '' + # mouse control + set -g mouse on + + # focus events enabled for terminals that support them + set -g focus-events on + + # open new tab in PWD + bind '"' split-window -c "#{pane_current_path}" + bind % split-window -h -c "#{pane_current_path}" + bind c new-window -c "#{pane_current_path}" + + # don't clear selection on copy + bind-key -Tcopy-mode-vi MouseDragEnd1Pane send -X copy-selection-no-clear + bind-key -Tcopy-mode-vi y send -X copy-selection-no-clear + ''; + }; vim.defaultEditor = true; };