tmux: style
This commit is contained in:
parent
b4bd291e76
commit
da24f19a47
1 changed files with 5 additions and 3 deletions
|
@ -1,6 +1,8 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) getExe optionalString;
|
||||
|
||||
cfg = config.snowhawk.tmux;
|
||||
sessionizer = cfg.sessionizer;
|
||||
in
|
||||
|
@ -12,7 +14,7 @@ in
|
|||
config = lib.mkIf cfg.enable {
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
shell = "${pkgs.fish}/bin/fish";
|
||||
shell = getExe pkgs.fish;
|
||||
mouse = true;
|
||||
baseIndex = 1;
|
||||
terminal = "screen-256color";
|
||||
|
@ -37,8 +39,8 @@ in
|
|||
|
||||
bind '"' split-window -v -c "#{pane_current_path}"
|
||||
bind % split-window -h -c "#{pane_current_path}"
|
||||
|
||||
${lib.optionalString sessionizer.enable ''bind-key -r f run-shell "tmux neww ${lib.getExe sessionizer.pkg}"''}
|
||||
'' + optionalString sessionizer.enable ''
|
||||
bind-key -r f run-shell "tmux neww ${getExe sessionizer.pkg}"
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue