-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
67 lines (48 loc) · 1.7 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
# Reload command
unbind r
bind r source-file ~/.tmux.conf
# Open an interactive shell instead of the login shell
set -g default-command "${SHELL} -i"
# Support for 256 colors
set -g default-terminal "tmux-256color"
set-option -a terminal-features "$TERM:RGB"
# Undercurl support
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'
# Underscore colours
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'
# Allow scroll using the mouse wheel
set -g mouse on
# Renumber windows automatically
set -g renumber-windows on
# Use system clipboard
set -g set-clipboard on
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# Set vim keybindings
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# Zoom with the letter "A" instead of "Z"
bind-key a resize-pane -Z
# Switch to the previous session
bind-key p switch-client -l
# Switch to the next session
bind-key n switch-client -n
# Change session
bind-key o send-keys "source ~/Scripts/tmux-change-session.sh" Enter
# Open new windows in the $HOME directory
bind-key c new-window -c "$HOME"
# Open new panes in the same path as the current pane
bind % split-window -h -c "#{pane_current_path}"
bind '"' split-window -v -c "#{pane_current_path}"
# URL Launcher
bind-key C-u run-shell -b "tmux capture-pane -J -p | grep -oE '(https?):\/\/[a-zA-Z0-9.-/:]+' | sort -u | head -1 | xargs xdg-open"
set -g @minimal-tmux-bg "#f5f0f2"
# List of plugins
set -g @plugin "niksingh710/minimal-tmux-status"
set -g @plugin "tmux-plugins/tpm"
set -g @plugin "tmux-plugins/tmux-sensible"
# Initialize TMUX plugin manager
run "~/.tmux/plugins/tpm/tpm"