You are not logged in.

#1 2024-05-26 11:04:18

meezoarch
Member
Registered: 2022-12-01
Posts: 41

Re-write a zsh_lf snippet to work in zellij instead of tmux

I am trying to rewrite the below snippet
zsh file picker / directory changer

I am using zellij rather than tmux

Can someone help me to rewrite this?

I tried simply replacing the tmux line with the below

       zellij run --floating -- "zsh -c 'exec {ZLE_FIFO}>$d/fifo; export ZLE_FIFO; exec lf'" || return 1

but I am getting

command not found: "zsh -c 'exec {ZLE_FIFO}>$d/fifo; export ZLE_FIFO; exec lf'" if you were including arguments as part of the command, try including them as 'args' instead.

Any idea what is the correct way of re-writing this? I am only a beginner, so I appreciate if someone provide me with the re-write and a brief explanation so that i can troubleshoot in the future.
Thanks in advance.

Offline

#2 2024-05-26 15:44:32

seth
Member
Registered: 2012-09-03
Posts: 54,449

Re: Re-write a zsh_lf snippet to work in zellij instead of tmux

Remove the double quotes, zellij tries to run an executable called "zsh -c 'cexec…" which of course doesn't exist.
(Notice that I've zero experience w/ zellij, but that's what the error says)

Online

Board footer

Powered by FluxBB