Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
# unbind default prefix and set it to ctrl-j
unbind C-b
set -g prefix C-j
bind C-j send-prefix
set -g history-limit 1000000
set -g status-keys emacs
set -g renumber-windows on
set -g set-titles on
set -g set-titles-string "#T"
set -g mouse on
set -g focus-events on
# copy mode
setw -g mode-keys vi
# make delay shorter
set -sg escape-time 0
### key bindings ###
# kill panel forcely
bind X kill-pane
# reload config file
bind r source-file ~/.tmux.conf \; display ".tmux.conf reloaded!"
# create new-window with current path
bind C new-window -c "#{pane_current_path}"
# split window
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
# resize panes
bind J resize-pane -D 10
bind K resize-pane -U 10
bind H resize-pane -L 10
bind L resize-pane -R 10
# select panes
bind j select-pane -D
bind k select-pane -U
bind h select-pane -L
bind l select-pane -R
# change layout
bind = select-layout tiled
# popup window
bind m run-shell "zsh -c tmuxpopup"
### status line
set -g status-position "top"
### source extra config file for Linux
if "uname | grep -q Linux" "source-file ~/.tmux.conf.linux"
### plugins ###
set -g @plugin "tmux-plugins/tpm"
set -g @plugin "tmux-plugins/tmux-sensible"
set -g @plugin "arcticicestudio/nord-tmux"
set -g @plugin "tmux-plugins/tmux-resurrect"
set -g @plugin "tmux-plugins/tmux-continuum"
set -g @plugin "fcsonline/tmux-thumbs"
# tpm
if "test ! -d ~/.tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
# tmux-thumbs
set -g @thumbs-command 'echo -n {} | pbcopy'
set -g @thumbs-upcase-command 'echo -n {} | pbcopy'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'