summaryrefslogtreecommitdiff
path: root/modules/programs/tmux.nix
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2017-01-10 20:59:19 +0100
committerDaiderd Jordan <daiderd@gmail.com>2017-01-10 20:59:19 +0100
commit2fa1f0f4dade9a997d17a4c2a99a6b884d4d8714 (patch)
treed3450553a0f5a7de38cffb8c5bcaa74713c82ebf /modules/programs/tmux.nix
parent5a5ec9ac42bcc99a6ddc577704824af225b99bd4 (diff)
programs.tmux: use reattach-to-user-namespace from nixpkgs
Diffstat (limited to 'modules/programs/tmux.nix')
-rw-r--r--modules/programs/tmux.nix4
1 files changed, 2 insertions, 2 deletions
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"
'');
};