Skip to content

mostafaqanbaryan/zellij-switch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zellij switch

I needed this for my workflow, but it's is not great at all and has a few problems.

But works for me!

Instruction

zellij pipe --plugin https://github.com/mostafaqanbaryan/zellij-switch/releases/download/v0.2.0/zellij-switch.wasm -- "--session zellij-session --cwd /home --layout default"
  • -s|--session cannot have any space (like any other zellij session name).
  • -c|--cwd must be an absolute path and is optional.
  • -l|--layout is optional

Build

  • Clone the project and run cargo build --target wasm32-wasip1 --release

Installation on NixOS

If you use home-manager or maintain a Nix configuration, you can add zellij-switch as easy as:

  1. Add this flake as an input in your Nix configuration:
{
  inputs.zellij-switch.url = "github:mostafaqanbaryan/zellij-switch";
}
  1. Add zellij-switch overlay to your nixpkgs:
{
  nixpkgs.overlays = [ zellij-switch.overlays.default ];
}
  1. Add zellij-switch to your packages:
environment.systemPackages = with pkgs; [
  zellij-switch
];
  1. Apply your configuration:
nixos-rebuild switch

About

A Zellij plugin for in-session attach

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •