summaryrefslogtreecommitdiff
path: root/tests/programs-tmux.nix
blob: fdd3eacbb66b0c79f1d8d67870efc9ef24c505fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ config, pkgs, ... }:

{
  programs.tmux.enable = true;
  programs.tmux.enableVim = true;

  test = ''
    echo "checking for tmux in /sw/bin" >&2
    test -x ${config.out}/sw/bin/tmux
    grep "__ETC_ZSHRC_SOURCED=${"''"}" ${config.out}/sw/bin/tmux
    grep "__NIX_DARWIN_SET_ENVIRONMENT_DONE=${"''"}" ${config.out}/sw/bin/tmux

    echo "checking for tmux.conf in /etc" >&2
    test -e ${config.out}/etc/tmux.conf
    grep "setw -g mode-keys vi" ${config.out}/etc/tmux.conf
  '';
}