This week at Zumuta!

"This week at Zumuta!" is a consice reading list about what happened in the Zumuta! universe in the past week.

The latest story:

This week 24-11-2025

This week was tmux week at Zumuta!

Tmux is a terminal multiplexer. It allows to switch easily between several programs in one terminal. When I'm working on my project kwai, I start the API backend, I start the vite dev server and in the mean time I would like to see the last messages from the log file. With tmux I can use one terminal to start and watch these processes.

I use Task to run commonly used CLI commands. It's easier to remember and I no longer have to check the history of commands to know how the order of arguments is put together again. Setting some environment variables, is something I regulary forget. With preconditions it's possible to set these environment variables before launching the command.

Setting up the tmux dev environment:

tmux new-session -d -s kwai
tmux split-window -v
tmux select-pane -t 0
tmux split-window -h
tmux send-keys -t kwai.0 'task backend:run_kwai_api' Enter
tmux send-keys -t kwai.1 'task frontend:dev_apps' Enter
tmux send-keys -t kwai.2 'tail -f ./backend/kwai.log' Enter
tmux attach-session -t kwai

First we create the kwai environment. The first window is split vertically. In the first pane, the window is splitted horizontally. With send-keys each pane will start a command. The first pane starts the backend, the second the vite dev server and the last one starts a tail of the log file.

tmux kwai

You can check the Taskfile.yml at the kwai repository.

Blog roll

Python

Others

Older stories

This week 17-11-2025

This week 10-11-2025