Based on my configuration
Split horizontally C-a H
Split vertically C-a V
Navigate split with C-a
and arrows.
tmux detach
or
C-a d
tmux list-sessions
tmux attach -t 0
# Requires Fish | |
# Rebind prefix key to C-a | |
unbind C-b | |
set -g prefix C-a | |
# force a reload of the config file | |
unbind r | |
bind r source-file ~/.tmux.conf | |
# Set shell | |
set-option -g default-shell "/usr/local/bin/fish" | |
# start window numbering at 1 for easier switching | |
set -g base-index 1 | |
# colors | |
set -g default-terminal "screen-256color" | |
# status bar config | |
set -g status-left "#h:[#S]" | |
set -g status-left-length 50 | |
set -g status-right-length 50 | |
set -g status-right "%H:%M %d.%m.%Y" | |
setw -g window-status-current-format "|#I:#W|" | |
set-window-option -g automatic-rename off | |
# listen to alerts from all windows | |
set -g bell-action any | |
# rebind pane tiling | |
bind V split-window -h | |
bind H split-window | |
# quick pane cycling | |
unbind ^A | |
bind ^A select-pane -t :.+ | |
# screen like window toggling | |
bind Tab last-window | |
bind Escape copy-mode | |
# Use vim keybindings in copy mode | |
setw -g mode-keys vi | |