# START-CLEANUP # # Unbind the default tmux command prefix, CTRL+b. unbind C-b # Unbind keys for vertical & Horizontal split unbind '"' unbind % # END-CLEANUP # # START-PREFERENCE # # Set zsh as default shell set-option -g default-shell /bin/zsh # Use ` as our tmux command prefix. set -g prefix ` bind a set -g prefix C-a bind ` set -g prefix ` # Lower the default tmux delay, this makes tmux more responsive. set -s escape-time 1 # start session number from 1 rather than 0 set -g base-index 1 # start pane number from 1 similar to windows set -g pane-base-index 1 # don't rename windows automatically set-option -g allow-rename off # reload config file (change file location to your the tmux.conf you want to use) bind r source-file ~/.tmux.conf # vertical split bind | split-window -h # horizontal split bind - split-window -v # Screen like kill bindings bind-key k confirm-before -p "kill-window #W? (y/n)" kill-window # Make tmux use 256 colors. set -g default-terminal "screen-256color" # Make tmux act like xterm to prevent Vim issues: set -g terminal-overrides 'xterm*:smcup@:rmcup@' # Store a lot of history. set -g history-limit 100000 # enable mouse set -g mouse on # Allow copying using mouse and vi like yank set-option -s set-clipboard off bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy" #bind-key -T copy-mode-vi y send-keys -X copy-pipe 'reattach-to-user-namespace pbcopy' # Customise Status line set-option -g status on # turn the status bar on set -g status-interval 5 # set update frequencey (default 15 seconds) # visual notification of activity in other windows setw -g monitor-activity on set -g visual-activity on # Customise what appears on status line set -g status-left " " set -g status-right "[#(uptime | sed 's/.*load averages: //')] #[fg=black]%d %b (%a) %l:%M %p " set -g status-right-length 75 # END-PREFERENCE #