Using Yazi as a launcher that spawns a shell at its last directory #2981
WantenMN
started this conversation in
2. Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Here is a small Bash script I wrote to integrate Yazi with my workflow in niri and Zellij.
It runs Yazi as a launcher, and when you exit, it spawns a new shell session starting in the last directory you navigated to inside Yazi.
This is useful in tiling window managers or terminal multiplexers where you often want to quickly browse to a directory and then stay there.
Script:
yazi-new-shell.sh
Example: niri
In your
niri/config.kdl
:or
Example: Zellij
In your
yazi_layout.kdl
:Beta Was this translation helpful? Give feedback.
All reactions