forked from Nephyrin/NephScripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
75 lines (58 loc) · 2.61 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
63
64
65
66
67
68
69
70
71
72
73
74
75
set-option -g default-shell /bin/zsh
# pane movement
bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'"
bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'"
bind R source-file ~/.tmux.conf
# tmux < 2.1
# Mouse wheel copy mode
# setw -g mode-mouse on
# Allow mouse to select which pane to use
# set -g mouse-select-pane on
# Allow mouse to select which window to use (in status bar)
# set -g mouse-select-window on
# Bind M and m to enable/disable the above, useful for terminals that don't have
# an escape key like shift for copying text in applications using the mouse
# bind-key M setw -g mode-mouse on \; set -g mouse-select-pane on \; set -g mouse-select-window on
# bind-key m setw -g mode-mouse off \; set -g mouse-select-pane off \; set -g mouse-select-window off
# tmux 2.1+
setw -g mouse
bind-key WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M
bind-key WheelDownPane select-pane -t= \; send-keys -M
# Env on attach.
set -g update-environment "SSH_AUTH_SOCK SSH_ASKPASS WINDOWID SSH_CONNECTION XAUTHORITY P9K_SSH DISPLAY"
# Clipboard integration
# bind-key C-c run-shell "tmux show-buffer | xsel -i -b && tmux display-message Copied"
bind-key C-c run-shell "tmux show-buffer | wl-copy && tmux display-message Copied"
bind-key C-s swap-window -t -1
bind-key C-d swap-window -t +1
# Allow xterm titles in terminal window, terminal scrolling with scrollbar
set -g terminal-overrides "xterm*:XT:smcup@:rmcup@:Tc"
# "xterm-style key sequences" -- possibly fix arrow keys?
# set-window-option -g xterm-keys on
set -g default-terminal "tmux-256color"
# Window title
#Character pair Replaced with
#(shell-command) First line of the command's output
#[attributes] Colour or attribute change
#H Hostname of local host
#h Hostname of local host without the domain name
#F Current window flag
#I Current window index
#D Current pane unique identifier
#P Current pane index
#S Session name
#T Current pane title
#W Current window name
## A literal ‘#’
set -g set-titles on
set -g set-titles-string "#h #### #S"
# Set ability to capture on start and restore on exit window data when running an application
setw -g alternate-screen on
# Lower escape timing from 500ms to 50ms for quicker response to scroll-buffer access.
set -s escape-time 50
# Misc
set -g history-limit 100000
# Powerline
#source "$HOME"/neph/powerline.git/powerline/bindings/tmux/powerline.conf
run-shell "powerline-daemon -q"
run-shell "powerline-config tmux setup"