From 2fa1f0f4dade9a997d17a4c2a99a6b884d4d8714 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Tue, 10 Jan 2017 20:59:19 +0100 Subject: programs.tmux: use reattach-to-user-namespace from nixpkgs --- modules/programs/tmux.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/programs') diff --git a/modules/programs/tmux.nix b/modules/programs/tmux.nix index 524b307..c392188 100644 --- a/modules/programs/tmux.nix +++ b/modules/programs/tmux.nix @@ -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" ''); }; -- cgit v1.2.3