summaryrefslogtreecommitdiffstats
path: root/.tmux.conf
diff options
context:
space:
mode:
authorYigit Sever2019-03-17 23:09:49 +0300
committerYigit Sever2019-03-17 23:18:28 +0300
commitea211500227aa58f5e495777743c5d391cbc3110 (patch)
treeafa2b455f9fea40b45dbf8a742c0d0d498024edb /.tmux.conf
downloaddotfiles-ea211500227aa58f5e495777743c5d391cbc3110.tar.gz
dotfiles-ea211500227aa58f5e495777743c5d391cbc3110.tar.bz2
dotfiles-ea211500227aa58f5e495777743c5d391cbc3110.zip
Initial commit
diffstat (limited to '.tmux.conf')
-rw-r--r--.tmux.conf84
1 files changed, 84 insertions, 0 deletions
diff --git a/.tmux.conf b/.tmux.conf
new file mode 100644
index 0000000..a798aa3
--- /dev/null
+++ b/.tmux.conf
@@ -0,0 +1,84 @@
1# Make shift+arrows, ctrl+arrows etc work in Vim.
2set -g xterm-keys on
3
4# See if this fixes slow ESC issues.
5# http://unix.stackexchange.com/questions/23138/esc-key-causes-a-small-delay-in-terminal-due-to-its-alt-behavior
6set -s escape-time 0
7
8# Start numbering at 1
9set -g base-index 1
10set -g pane-base-index 1
11
12# Set status bar
13set -g status-position bottom
14set -g status-justify left
15set -g status-bg black
16set -g status-fg white
17set -g status-attr bold
18set -g status-left "#S "
19set -g status-right '#[fg=white,bg=black,bold] %d/%m #[fg=white,bg=black,bold] %H:%M @#H'
20
21# higlight the active window in the status bar
22set-window-option -g window-status-current-bg white
23set-window-option -g window-status-current-fg black
24
25setw -g window-status-current-fg red
26setw -g window-status-current-bg white
27setw -g window-status-current-attr bold
28setw -g window-status-current-format ' #I#[fg=red]:#[fg=black]#W#[fg=black]#F '
29
30setw -g window-status-fg white
31setw -g window-status-bg black
32setw -g window-status-attr dim
33setw -g window-status-format ' #I#[fg=cyan]:#[fg=white]#W#[fg=white]#F '
34
35# Don't prompt to kill panes/windows. TODO you will fuck this up
36bind-key x kill-pane
37bind-key & kill-window
38
39# Cycle panes.
40bind b select-pane -t :.+
41bind C-b select-pane -t :.+
42
43# More intuitive split-window mappings.
44bind "'" split-window -h -c "#{pane_current_path}"
45bind - split-window -v -c "#{pane_current_path}"
46
47# Maximize pane, e.g. for copying.
48bind-key z resize-pane -Z
49
50# Use vim keybindings in copy mode
51setw -g mode-keys vi
52
53set -g default-terminal "tmux-256color"
54set -g default-command "${SHELL}"
55set -g set-titles on
56set -g mouse on
57
58# C-b is not acceptable -- Vim uses it
59set-option -g prefix C-space
60bind-key C-space last-window
61
62# vim like navigation
63bind h select-pane -L
64bind j select-pane -D
65bind k select-pane -U
66bind l select-pane -R
67
68# The panes
69
70#set -g pane-border-bg colour235
71#set -g pane-border-fg colour238
72#set -g pane-active-border-bg colour236
73#set -g pane-active-border-fg colour51
74
75# panes
76#set -g pane-border-fg black
77#set -g pane-active-border-fg brightred
78
79# Activity monitoring
80setw -g monitor-activity on
81set -g visual-activity on
82
83# Example of using a shell command in the status line
84#set -g status-right "#[fg=yellow]#(uptime | cut -d ',' -f 2-)"