tmux: allow setting default-shell before new-session

This commit is contained in:
Joe Hermaszewski 2019-10-15 10:23:32 +08:00 committed by Robert Helgesson
parent 7c3c64208e
commit 9c14bbe988
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
4 changed files with 70 additions and 1 deletions

View file

@ -0,0 +1,27 @@
{ config, lib, pkgs, ... }:
with lib;
let
substituteExpected = path:
pkgs.substituteAll {
src = path;
sensible_rtp = pkgs.tmuxPlugins.sensible.rtp;
};
in {
config = {
programs.tmux = {
enable = true;
shell = "/usr/bin/myshell";
};
nmt.script = ''
assertFileExists home-files/.tmux.conf
assertFileContent home-files/.tmux.conf \
${substituteExpected ./default-shell.conf}
'';
};
}