DEV Community

Cover image for I Added Smart Automation to My Zellij Workflow
Aaron Junod
Aaron Junod

Posted on

I Added Smart Automation to My Zellij Workflow

Tags: #zellij #terminal #productivity #shell #opensource

Terminal multiplexers are amazing, but...

The friction was killing me:

  • Spend 5 minutes naming sessions πŸ™„
  • "Was it my-app or myapp?" every. single. time.
  • Manually set up the same 4-pane layout daily
  • Lose flow setting up what should be automatic

Zellij is incredible, but I needed some automation to actually use it consistently.

So I automated the annoying parts

zellij-utils = smart session management that actually works.

Auto-names sessions (finally)

cd ~/work/my-awesome-api && zj
# β†’ session "my-awesome-api" ✨

cd ~/projects/portfolio-site && zj  
# β†’ session "portfolio-site" ✨
Enter fullscreen mode Exit fullscreen mode

Git repo? Uses repo name. Project directory? Uses folder name. It just works.

Instant dev layouts

zjdev
# β†’ Editor + terminal + git + logs
# In one command. No setup.
Enter fullscreen mode Exit fullscreen mode

Safe session cleanup

zjd                    # Pick sessions to delete (with fzf)
zjd old-project       # Delete specific (with confirmation)
zjd --all             # Nuclear option (except current)
Enter fullscreen mode Exit fullscreen mode

Why Zellij > tmux

tmux = memorizing weird keybinds

Zellij = just works, looks modern, has sane defaults

The remote dev flex πŸ”₯

Start coding on laptop β†’ close laptop β†’ SSH from phone β†’ everything's still there.

Perfect for:

  • AI models that take hours to train
  • Long-running processes
  • Working from anywhere (literally anywhere with internet)

Try it (30 seconds)

bash <(curl -fsSL https://raw.githubusercontent.com/tranqy/zellij-utils/main/scripts/install.sh)
Enter fullscreen mode Exit fullscreen mode

Restart terminal. Done.

It's actually production-ready

  • CI/CD tested on Ubuntu + Alpine
  • Security audited (input validation, injection prevention)
  • Works on Linux, macOS, WSL
  • Won't break your existing setup

What's your terminal setup?

Drop feedback, feature requests, or just roast my code:

πŸ”— GitHub: tranqy/zellij-utils

πŸ’¬ Discussions

⭐ Star if it's useful

Still using tmux? Screen? Just raw terminals like a psychopath? Let me know in the comments what your workflow looks like.

Top comments (0)