Files
dotfiles/tmux.conf
Vasili Sviridov 4085a38ffb Update tmux.conf
reattach to shell, osx specific
2018-02-20 10:19:47 -08:00

36 lines
876 B
Bash

if-shell "uname | grep -q Darwin" "set -g default-command \"reattach-to-user-namespace -l $SHELL\""
set -g default-terminal "screen-256color"
run "~/.dotfiles/tmux.sh"
set -g base-index 1
set -g set-titles on
set -g status-keys vi
# Faster Command Sequences
set -s escape-time 0
set -g set-clipboard on
set -g history-limit 50000
setw -g xterm-keys on
setw -g automatic-rename on
setw -g monitor-activity on
setw -g aggressive-resize on
unbind C-a
unbind C-b
set -g prefix C-a
bind-key C-a last-window
set -g terminal-overrides 'xterm*:smcup@:rmcup@' # enable native xterm scrolling where available
bind a send-key C-a
set -g xterm-keys on
bind | split-window -h -c "#{pane_current_path}"# split horiz
bind _ split-window -v -c "#{pane_current_path}"# split vert
bind A command-prompt "rename-window '%%'"
new-session # always create a session (can always `tmux a`)