mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
18 lines
485 B
Nix
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
|
||
|
'';
|
||
|
}
|