tmux: Disable confirmation prompt
This commit is contained in:
parent
0db26fc3ab
commit
29824a8cf6
6 changed files with 77 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue