1
0
Fork 0
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:
Daiderd Jordan 2017-01-10 20:59:19 +01:00
parent 5a5ec9ac42
commit 2fa1f0f4da
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -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"
'');
};