1
1
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-09-11 12:49:18 +03:00
nix-darwin/tests/programs-tmux.nix
2019-11-02 17:18:39 +01:00

18 lines
485 B
Nix

{ 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
'';
}