-
Notifications
You must be signed in to change notification settings - Fork 1
/
.tmux.conf
41 lines (34 loc) · 1.47 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
# Basic tmux configuration file
# Other resources
# - Automate panels and stuff in tmux: https://github.com/tmuxinator/tmuxinator
# From: https://techantidote.com/tmux-not-displaying-bash-prompt-colors/
set -g default-terminal "screen-256color"
# From: https://unix.stackexchange.com/questions/288871/ctrl-arrow-keys-working-in-tmux
# want to allow control key combinations to work
set-window-option -g xterm-keys on
# From: https://superuser.com/a/830873/1187720
# Set title of terminal
set-option -g set-titles on
# From: https://www.man7.org/linux/man-pages/man1/tmux.1.html#FORMATS
# and:https://unix.stackexchange.com/a/585921/456203
set -g set-titles-string '#S@#h'
# Use the mouse normally
# From: https://superuser.com/a/510310/1187720
set -g mouse on #For tmux version 2.1 and up
#set -g mode-mouse on #For tmux versions < 2.1
# Enable mouse control (clickable windows, panes, resizable panes) (version < 2.1)
# From: https://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/#mouse-mode
#set -g mouse-select-window on
#set -g mouse-select-pane on
#set -g mouse-resize-pane on
# Increase history
# From: https://stackoverflow.com/a/18777877
set-option -g history-limit 5000
# Remap ctrl-b to ctrl-a (NOT TESTED)
# From: https://koenwoortman.com/tmux-remap-ctrl-b-to-ctrl-a/
#unbind-key C-b
#set-option -g prefix C-a
#bind-key C-a send-prefix
# Use ZSH for shell
# From: https://unix.stackexchange.com/a/214086/456203
set -g default-command /usr/bin/zsh