1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00
nix-darwin/tests/programs-tmux.nix

18 lines
485 B
Nix
Raw Normal View History

2019-11-02 16:18:39 +00:00
{ 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
'';
}