-
Notifications
You must be signed in to change notification settings - Fork 2
/
.tmux.conf
62 lines (49 loc) · 2.03 KB
/
.tmux.conf
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# ~/.tmux.conf
# Let the mouse select panes, resize panes, scroll, select and copy text.
set-option -g mouse on
# This is a command line, so make emacs keys work there (<prefix> + :)
set-option -g status-keys "emacs"
# Show tmux messages for N ms (or until a key is pressed)
set-option -g display-time 4000
# How long to display pane numbers (<prefix> + q). When pane numbers are
# displayed, you can press numeric keys to jump to that pane.
set-option -g display-panes-time 4000
# When a window is closed, renumber higher numbered windows to fill the gap.
set-option -g renumber-windows on
# Start windows and panes at 1, not 0
set-option -g base-index 1
set-window-option -g pane-base-index 1
# Big history
set-option -g history-limit 100000
# Move between panes using Vim keys.
# NOTE: This clobbers <prefix> + l to select last active window.
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# Move between panes using Alt+<Arrow>. It's very similar (in effort) though
# to use the default binding: <prefix> + <arrow>.
bind-key -n M-Left select-pane -L
bind-key -n M-Down select-pane -D
bind-key -n M-Up select-pane -U
bind-key -n M-Right select-pane -R
# Switch windows with Alt+number.
# WARN: gnome-terminal eats these for itself, if using tabs.
bind-key -n M-1 select-window -t 1
bind-key -n M-2 select-window -t 2
bind-key -n M-3 select-window -t 3
bind-key -n M-4 select-window -t 4
bind-key -n M-5 select-window -t 5
bind-key -n M-6 select-window -t 6
bind-key -n M-7 select-window -t 7
bind-key -n M-8 select-window -t 8
bind-key -n M-9 select-window -t 9
# Inherit current working directory when splitting panes
bind-key '%' split-window -h -c '#{pane_current_path}'
bind-key '"' split-window -v -c '#{pane_current_path}'
# and creating windows
#bind-key c new-window -c '#{pane_current_path}'
bind-key R source-file ~/.tmux.conf \; display-message "tmux config reloaded..."
# If not on NixOS:
# $ nix-env -iA nixpkgs.pythonPackages.powerline
#source-file ~/.nix-profile/share/tmux/powerline.conf