Skip to content

Commit

Permalink
Add support for Zellij
Browse files Browse the repository at this point in the history
Related to shobrook#11

Update the environment check in `wut/wut.py` to support Zellij.

* Modify the check to include `os.environ.get("ZELLIJ")`.
* Update the error message to include Zellij, indicating that `wut` must be run inside a tmux, screen, or Zellij session.
  • Loading branch information
vishwamartur committed Dec 21, 2024
1 parent af43093 commit 057d225
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wut/wut.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ def main():

with console.status("[bold green]Trying my best..."):
# Ensure environment is set up correctly
if not os.environ.get("TMUX") and not os.environ.get("STY"):
if not os.environ.get("TMUX") and not os.environ.get("STY") and not os.environ.get("ZELLIJ"):
console.print(
"[bold red]wut must be run inside a tmux or screen session.[/bold red]"
"[bold red]wut must be run inside a tmux, screen, or Zellij session.[/bold red]"
)
return
if (
Expand Down

0 comments on commit 057d225

Please sign in to comment.