-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
38 lines (30 loc) · 998 Bytes
/
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
# Colors
set -s default-terminal "tmux-256color"
# Powerline theme (tmux-powerline rpm)
# TODO: detect config existance
# source /usr/share/tmux/powerline.conf
source /usr/share/powerline/bindings/tmux/powerline.conf
# Longer pane scrollback
set -g history-limit 500000
# Per-pane cgroups
# set -g default-command "systemd-run --user --scope --same-dir --quiet $SHELL"
set -g default-command "systemd-run --user --scope --quiet $SHELL"
# vim bindings for navigating panes and scrollback
setw -g mode-keys vi
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
# Enable mouse
set -g mouse on
# Migrate from screen: https://thoughtbot.com/blog/migrating-from-screen-to-tmux
# Use screen prefix key
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# Split bindings
bind | split-window -h -c "#{pane_current_path}"
bind S split-window -v -c "#{pane_current_path}"
#bind \" choose-tree -w
# C-a C-a to go to last screen
bind-key C-a last-window