diff --git a/nix/homeModules/common/tmux/default.nix b/nix/homeModules/common/tmux/default.nix index 47ecb2a2..7d5e276b 100644 --- a/nix/homeModules/common/tmux/default.nix +++ b/nix/homeModules/common/tmux/default.nix @@ -5,7 +5,10 @@ }: { programs.tmux.extraConfig = - builtins.readFile ./tmux.conf + builtins.readFile ./tmux.conf + '' + # easy config reload (that bypasses nix too) + bind r source-file ${toString ./tmux.conf} \; display-message "tmux.conf reloaded." + '' + lib.optionalString pkgs.stdenv.isDarwin '' bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel 'pbcopy' bind-key -T copy-mode-vi Enter send -X copy-pipe-and-cancel 'pbcopy' diff --git a/nix/homeModules/common/tmux/tmux.conf b/nix/homeModules/common/tmux/tmux.conf index 33bdd1f6..e63fb0a0 100644 --- a/nix/homeModules/common/tmux/tmux.conf +++ b/nix/homeModules/common/tmux/tmux.conf @@ -55,9 +55,6 @@ bind ` send-prefix set -g prefix ` unbind C-b -# easy config reload (that bypasses nix too) -bind r source-file ~/.dotfiles/nix/homeModules/common/tmux/tmux.conf \; display-message "tmux.conf reloaded." - # open new window in current path bind c new-window -c "#{pane_current_path}" bind C new-window