mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
Another saturday another useless formatter change. It's my dotfiles, after all alejandra doesn't handle c-style inline comments well.
17 lines
550 B
Nix
17 lines
550 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
programs.tmux.extraConfig =
|
|
builtins.readFile ./tmux.conf
|
|
+ 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'
|
|
''
|
|
+ lib.optionalString pkgs.stdenv.isLinux ''
|
|
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
|
|
bind-key -T copy-mode-vi Enter send -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
|
|
'';
|
|
}
|