Welcome to the Epitech Hub workshop on Tmux! In this workshop, we will explore the basics of Tmux and learn how to use it effectively for managing terminal sessions.
- What is Tmux?
- Installation and Setup
- Tmux Basics
- Creating and managing sessions
- Splitting panes
- Navigating between panes
- Customizing Tmux
- Conclusion and Resources
Tmux is a terminal multiplexer, which means it allows you to manage multiple terminal sessions within a single window. It provides a way to organize and control your terminal environment more efficiently.
With Tmux, you can create and manage multiple sessions, each containing one or more terminal windows or panes. This allows you to work on different tasks or projects simultaneously without needing to open multiple terminal windows or tabs.
Ubuntu / Debian
apt install tmux
Fedora / Centos
dnf install tmux
Archlinux
pacman -S tmux
And you have the config file of Tmux in .config/tmux
or .tmux
You can create a new session with this:
tmux new-session -s SESSION_NAME
If you are in tmux you can do it with
$PREFIX + :
new -s SESSION_NAME
Split horizontale
$PREFIX + %
Split vertical
$PREFIX + "
To navigate you can do $PREFIX
with the arrow or the vim keybind
There is my tmux config
# Start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
# activate mouse
set -g mouse on
# change prefix to space
unbind C-b
set -g prefix C-Space
bind C-Space send-prefix
You can also install some plugin for tmux with TPM
I have this plugin installed
- tmux-plugins/tmux-sensible
- christoomey/vim-tmux-navigator
- dreamsofcode-io/catppuccin-tmux
- tmux-plugins/tmux-yank
- joshmedeski/t-smart-tmux-session-manager
Happy Tmuxing!