mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-13 20:30:02 +00:00
programs.tmux: use reattach-to-user-namespace from nixpkgs
This commit is contained in:
parent
5a5ec9ac42
commit
2fa1f0f4da
1 changed files with 2 additions and 2 deletions
|
@ -112,7 +112,7 @@ in {
|
|||
'';
|
||||
|
||||
programs.tmux.tmuxOptions.login-shell.text = if stdenv.isDarwin then ''
|
||||
set -g default-command "reattach-to-user-namespace ${config.environment.loginShell}"
|
||||
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}"
|
||||
'';
|
||||
|
@ -164,7 +164,7 @@ in {
|
|||
'' + optionalString stdenv.isLinux ''
|
||||
bind -t vi-copy y copy-selection
|
||||
'' + optionalString stdenv.isDarwin ''
|
||||
bind -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
|
||||
bind -t vi-copy y copy-pipe "${pkgs.reattach-to-user-namespace}/bin/reattach-to-user-namespace pbcopy"
|
||||
'');
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue