2022-02-08 17:46:08 +01:00
|
|
|
{ pkgs }:
|
2022-02-03 09:10:22 +01:00
|
|
|
|
|
|
|
{
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
# Accordingly to neovim https://github.com/neovim/neovim/wiki/FAQ#esc-in-tmux-or-gnu-screen-is-delayed
|
|
|
|
escapeTime = 10;
|
|
|
|
keyMode = "vi";
|
|
|
|
shortcut = "t";
|
2022-02-03 12:37:53 +01:00
|
|
|
customPaneNavigationAndResize = true;
|
2022-02-03 09:10:22 +01:00
|
|
|
|
|
|
|
resizeAmount = 5;
|
|
|
|
aggressiveResize = true;
|
|
|
|
|
|
|
|
# Use tmux with 256 colors.
|
|
|
|
# Also see https://github.com/neovim/neovim/wiki/FAQ#colors-arent-displayed-correctly
|
2022-03-09 10:50:34 +01:00
|
|
|
# Use screen instead of tmux as some tools might not be aware of tmux
|
|
|
|
terminal = "screen-256color";
|
2022-02-03 09:10:22 +01:00
|
|
|
|
2022-08-22 07:48:52 +02:00
|
|
|
shell = "${pkgs.zsh}/bin/zsh";
|
2022-02-08 17:46:08 +01:00
|
|
|
|
2022-02-03 09:10:22 +01:00
|
|
|
sensibleOnTop = false;
|
|
|
|
|
|
|
|
extraConfig = builtins.readFile ../files/tmux;
|
|
|
|
}
|