Morandyt Demo

tmux-pencil

Tmux-pencil helps you quickly set up your own .tmux.conf from scratch.

Table of Contents

inline table of content only on mobile

Tmux configuration setup script – tmux-pencil

This is a tool that can helps you set your tmux configuration easily. Just follow the instructions, and a kick-start .tmux.conf will be created.

tmux-pencil only modifies your .tmux.conf or creates a backup file, you can edit it afterward as needed.

tmux-pencil-logo

Usage

1. Setup tmux session environment

Since we’re configuring tmux, it’s recommended to stay inside a tmux session so that you can see most of the effects immediately.

The command below will create a new session (tpen) with two windows (setup & demo), as some effects require multiple windows to demonstrate properly:

1
2
3
4
5
tmux -f /dev/null new-session -d -s tpen -n setup \; \
	set-option -t tpen:setup remain-on-exit on \; \
	new-window -n demo \; \
	select-window -t tpen:setup \; \
	attach-session -t tpen

2. Download & Set permission

While in the tmux session, download the script to your home directory. You can delete it afterward.

1
2
cd
curl -o tmux-pencil.sh https://raw.githubusercontent.com/penyt/tmux-pencil/refs/heads/main/tmux-pencil.sh

Of course, you can also copy and paste the script contents manually.

Then, make the script executable:

1
chmod +x tmux-pencil.sh

3. Run the script

1
./tmux-pencil.sh

4. Configure

Follow the on-screen instructions to configure your tmux settings.

5. Finish

You can now see your new .tmux.conf in your home directory.

1
cat ~/.tmux.conf

If you no longer need the script, feel free to delete it:

1
rm tmux-pencil.sh

Support

Thanks for using tmux-pencil! Don’t forget to ⭐️ the repo if you like it.

All Categories