-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
48 lines (41 loc) · 1.5 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
if-shell "uname | grep -q Darwin" "set-option -g default-command 'reattach-to-user-namespace -l $SHELL'"
# set-window-option -g xterm-keys on
set -g mouse on
set-option -g default-terminal "screen-256color"
if-shell "uname | grep -q Darwin" "set-option -g default-shell /bin/zsh"
if-shell "uname | grep -q Linux" "set-option -g default-shell /usr/bin/zsh"
set -g default-terminal "xterm-256color"
set -ga terminal-overrides ",*256col*:Tc"
unbind C-b
set -g prefix C-a
set-option -g status-style bg=default
set -g status-position bottom
# set -g status-right '#(cd #{pane_current_path}; git rev-parse --abbrev-ref HEAD)'
set -g status-right ''
set -g status-right-length 0
set -g status-left-length 20
set -g focus-events on
# Vim-like key bindings for pane navigation (default uses cursor keys).
unbind h
bind h select-pane -L
unbind j
bind j select-pane -D
unbind k
bind k select-pane -U
unbind l # normally used for last-window
bind l select-pane -R
set -s escape-time 0
# Automatically renumber window numbers on closing a pane (tmux >= 1.7).
set -g renumber-windows on
# Open new/split panes with the path of the current pane.
unbind c
bind c new-window -c '#{pane_current_path}'
unbind %
bind % split-window -h -c '#{pane_current_path}'
unbind '"'
bind '"' split-window -v -c '#{pane_current_path}'
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
set -g base-index 1
set -g set-clipboard on
setw -g pane-base-index 1