-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathtmux.nix
More file actions
40 lines (40 loc) · 1.02 KB
/
tmux.nix
File metadata and controls
40 lines (40 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
pkgs,
lib,
...
}:
{
home.packages = lib.optionals (pkgs.stdenvNoCC.isDarwin) [
pkgs.reattach-to-user-namespace
];
programs.tmux = {
enable = true;
clock24 = true;
historyLimit = 50000;
escapeTime = 0;
focusEvents = true;
keyMode = "vi";
terminal = "screen-256color";
plugins = with pkgs.tmuxPlugins; [
tmux-floax
tmux-sessionx
tmux-thumbs
tmux-which-key
sensible
];
extraConfig = ''
set -g allow-passthrough on
set -ga update-environment TERM
set -ga update-environment TERM_PROGRAM
set -as terminal-features ",*-256color:RGB"
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
bind g display-popup -E -xC -yC -w 80% -h 80% -d "#{pane_current_path}" ${pkgs.lazygit}/bin/lazygit
''
+ lib.optionalString pkgs.stdenvNoCC.isDarwin ''
set -g default-command "${pkgs.reattach-to-user-namespace}/bin/reattach-to-user-namespace -l zsh"
'';
};
}