mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 08:46:39 +00:00
76 lines
1.8 KiB
Bash
76 lines
1.8 KiB
Bash
# Prefix Key
|
||
unbind C-b
|
||
set -g prefix C-q
|
||
bind C-q send-prefix
|
||
|
||
# Settings
|
||
set -g default-terminal "screen-256color"
|
||
set -g detach-on-destroy on
|
||
set -g history-limit 10240
|
||
|
||
# Mouse support
|
||
set -g mouse on # Tmux 2.1 and later
|
||
set -g mode-mouse on
|
||
set -g mouse-select-pane on
|
||
set -g mouse-resize-pane on
|
||
set -g mouse-select-window on
|
||
|
||
# Pre Tmux 2.1 mouse scrolling behavior
|
||
# - from: https://github.com/tmux/tmux/issues/145#issuecomment-151123624
|
||
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
|
||
bind -n WheelDownPane select-pane -t= \; send-keys -M
|
||
|
||
# Mac OS X fix for pbcopy, pbpaste, and launchctl
|
||
set-option -g default-command "login-shell"
|
||
|
||
# Load Theme
|
||
source-file "${HOME}/.tmux/themes/powerline/default/green.tmuxtheme"
|
||
|
||
# Set window notifications
|
||
setw -g monitor-activity on
|
||
set -g visual-activity off
|
||
|
||
# Keybindings
|
||
bind r source-file ~/.tmux.conf
|
||
|
||
# Ctrl versions of default keybindings
|
||
bind C-c new-window
|
||
bind C-n next-window
|
||
bind C-p previous-window
|
||
bind C-l last-window
|
||
bind C-s choose-session
|
||
bind C-w choose-window |