mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-05 08:17:01 +00:00
Merge pull request #60 from nix-hackers/tmux-iterm2
tmux: play nice with iTerm2
This commit is contained in:
commit
02a11717a4
1 changed files with 8 additions and 1 deletions
|
@ -73,6 +73,13 @@ in
|
|||
description = "Enable vim style keybindings for copy mode, and navigation of tmux panes.";
|
||||
};
|
||||
|
||||
programs.tmux.iTerm2 = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
example = true;
|
||||
description = "Cater to iTerm2 and its tmux integration, as appropriate.";
|
||||
};
|
||||
|
||||
programs.tmux.tmuxOptions = mkOption {
|
||||
internal = true;
|
||||
type = types.attrsOf (types.submodule text);
|
||||
|
@ -100,7 +107,7 @@ in
|
|||
source-file -q /etc/tmux.conf.local
|
||||
'';
|
||||
|
||||
programs.tmux.tmuxOptions.login-shell.text = if stdenv.isDarwin then ''
|
||||
programs.tmux.tmuxOptions.login-shell.text = if stdenv.isDarwin && !cfg.iTerm2 then ''
|
||||
set -g default-command "${pkgs.reattach-to-user-namespace}/bin/reattach-to-user-namespace ${config.environment.loginShell}"
|
||||
'' else ''
|
||||
set -g default-command "${config.environment.loginShell}"
|
||||
|
|
Loading…
Add table
Reference in a new issue