Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 1.61 KB

tmux.md

File metadata and controls

53 lines (34 loc) · 1.61 KB

tmux setup

tmux is an open-source terminal multiplexer for Unix-like operating systems. It allows multiple terminal sessions to be accessed simultaneously in a single window(wiki).

To setup tmux with my config file

git clone https://github.com/ashish10alex/system-setup
cd system-setup 
cp .tmux.conf ~/.tmux.conf

Install Tmux plugin manager

$ git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

From the terminal source the tmux configuration by running, make sure atleast one tmux session is running

$ tmux source ~/.tmux.conf

You can make changes and reload tmux config using - prefix + SHIFT + r. Currently my prefix is the same as default CTLR + b

Refer to tmux cheat sheet to get started with tmux

Plugins

Preserves tmux sessions over reboots.

Now source the ~/.tmux.conf file by running

# type this in terminal if tmux is already running
$ tmux source ~/.tmux.conf

Go inside any of your your tmux sessions and Press prefix + I (capital i, as in Install) to fetch the plugin.

Now you can -

  • save sessions using prefix + CTLR + s
  • restore sessions using prefix + CTLR + r

Easy management of windows, sessions, invoked by - prefix + SHIFT + f