nixpkgs/home/programs/tmux.nix
Daniel Siepmann b758d564ed
Fix broken tmux default shell
I don't understand the issue, I thought tmux would inspect env $SHELL.
Looks like it doesn't and use sh instead.
So we configure to use zsh instead.
2022-02-08 17:46:08 +01:00

25 lines
541 B
Nix

{ pkgs }:
{
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";
customPaneNavigationAndResize = true;
resizeAmount = 5;
aggressiveResize = true;
# Use tmux with 256 colors.
# Also see https://github.com/neovim/neovim/wiki/FAQ#colors-arent-displayed-correctly
terminal = "tmux-256color";
shell = "${pkgs.zsh}/bin/zsh";
sensibleOnTop = false;
extraConfig = builtins.readFile ../files/tmux;
}