home/tmux: use out-of-store link to hot-reload

This commit is contained in:
Primrose 2026-02-02 11:01:24 +01:00
parent 9c9f71f7ff
commit 78b288592e
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
2 changed files with 4 additions and 4 deletions

View file

@ -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'

View file

@ -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