ThePrimeagen / ThePrimeagen/init.lua

WezTerm => multi-platform TMUX

Open
#95 1 comment 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
4k
Forks
680
PR merge metrics
No merged PRs in 30d

Description

I want to suggest alternative to tmux for this setup --> WezTerm is a shell emulator written in rust, configured with lua: https://wezfurlong.org/wezterm/

I used tmux at work but I wanted a solution for multiplexing in Windows at home. I discovered a way to automate my setup of my different terminal-based workflows! Whats nice is it also has a CLI interface like tmux, so I think it's possible to use neovim to trigger a session swap. Otherwise, WezTerm itself can handle session swaps in it's own lua scripts.

As an example, I use WezTerm's lua scripts to define and swap amongst these workspaces:

  • Hobby gamedev
    • opens or creates 'cmd.exe /k C:/Program Files (x86)/2019/Community/VC/Auxiliary/Build/vcvars64.bat /k '
  • Website
    • opens powershell.exe on my website project folder, then executes "nvim ."
  • Home automation
    • opens a remote ssh to my raspberry pi

There is also a command launcher where I can create a list of common CLI commands. Then, use keybindings to execute their number or a keybinding to show a menu listings the options like this:
Screenshot 2023-10-01 001440

Also, WezTerm maintainer is a very nice dude!

Anyways, let me know if this is something you'd like!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names WezTerm Lua scripts, Neovim, and command-line workflows but no specific repository file or test. Start by reviewing the issue and its single comment, then inspect the existing init.lua configuration to determine whether WezTerm support fits. Done is not defined; an agreed scope and acceptance criteria are needed before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, neovim, powershell
Domain
cli, desktop-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.