# Setting the prefix from C-b to C-a
set -g prefix C-a
# Free the original Ctrl-b prefix keybinding
unbind C-b
#setting the delay between prefix and command
set -s escape-time 1
# Ensure that we can send Ctrl-A to other apps
bind C-a send-prefix
# Set the base index for windows to 1 instead of 0
set -g base-index 1
# Set the base index for panes to 1 instead of 0
setw -g pane-base-index 1
# Reload the file with Prefix r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# splitting panes with | and -
bind | split-window -h
bind - split-window -v
PREFIX now is CTRL+a
remap your CapsLock to CTRL
tmux new -s my_session
tmux ls
tmux attach -tmy_session
with exit inside a session
or
tmux kill-session -t basic
inside a session: PREFIX + d
PREFIX + c
PREFIX + ,
PREFIX + w
PREFIX + -
PREFIX + |
PREFIX + o