tmux: Disable confirmation prompt

This commit is contained in:
Sebastián Estrella 2019-06-04 06:21:20 -05:00 committed by Matthieu Coudron
parent 0db26fc3ab
commit 29824a8cf6
6 changed files with 77 additions and 0 deletions

View file

@ -65,6 +65,11 @@ let
bind C-${cfg.shortcut} last-window
''}
${optionalString cfg.disableConfirmationPrompt ''
bind-key & kill-window
bind-key x kill-pane
''}
setw -g aggressive-resize ${boolToStr cfg.aggressiveResize}
setw -g clock-mode-style ${if cfg.clock24 then "24" else "12"}
set -s escape-time ${toString cfg.escapeTime}
@ -109,6 +114,14 @@ in
'';
};
disableConfirmationPrompt = mkOption {
default = false;
type = types.bool;
description = ''
Disable confirmation prompt before killing a pane or window
'';
};
enable = mkEnableOption "tmux";
escapeTime = mkOption {