nixos-config/modules/tmux.nix
Simon Bruder 10b8d432d5
Relicense
This applies the REUSE specification to the repository, so the licensing
information can be tracked for every file individually.
2024-01-13 14:39:22 +01:00

36 lines
758 B
Nix

# SPDX-FileCopyrightText: 2018-2022 Simon Bruder <simon@sbruder.de>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
{
programs.tmux = {
enable = true;
terminal = "tmux-256color";
escapeTime = 0;
aggressiveResize = true;
baseIndex = 1;
extraConfig = /* tmux */ ''
# screen behaviour
unbind C-b
set -g prefix C-a
unbind C-a
bind C-a send-prefix
# more ergonomic splitting
unbind |
bind | split-window -h
unbind -
bind - split-window -v
# HOWTO copy: PREFIX+[, space, select text, enter, PREFIX+]
# disable mouse (prevents simple copying)
set -g mouse off
# true color support
set -ga terminal-overrides ",xterm-256color:Tc"
'';
};
}