forked from lucperkins/nix-home-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.nix
40 lines (31 loc) · 836 Bytes
/
tmux.nix
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
# tmux settings
{ config, lib, pkgs, ... }:
{
programs.tmux = {
enable = true;
escapeTime = 0;
baseIndex = 1;
keyMode = "vi";
shortcut = "b";
# Replaces ~/.tmux.conf
extraConfig = ''
set-option -g mouse on
set-option -g default-shell ''${SHELL}
set -g mode-keys emacs
set -g status-keys emacs
bind Escape copy-mode
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind-key J resize-pane -D 5
bind-key K resize-pane -U 5
bind-key H resize-pane -L 5
bind-key L resize-pane -R 5
bind N previous-window
'';
};
}