mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-03 15:39:41 +00:00
home/tmux: use out-of-store link to hot-reload
This commit is contained in:
parent
9c9f71f7ff
commit
78b288592e
2 changed files with 4 additions and 4 deletions
|
|
@ -5,7 +5,10 @@
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
programs.tmux.extraConfig =
|
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 ''
|
+ 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 'y' send -X copy-pipe-and-cancel 'pbcopy'
|
||||||
bind-key -T copy-mode-vi Enter send -X copy-pipe-and-cancel 'pbcopy'
|
bind-key -T copy-mode-vi Enter send -X copy-pipe-and-cancel 'pbcopy'
|
||||||
|
|
|
||||||
|
|
@ -55,9 +55,6 @@ bind ` send-prefix
|
||||||
set -g prefix `
|
set -g prefix `
|
||||||
unbind C-b
|
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
|
# open new window in current path
|
||||||
bind c new-window -c "#{pane_current_path}"
|
bind c new-window -c "#{pane_current_path}"
|
||||||
bind C new-window
|
bind C new-window
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue