yazi/Q/In yazi, if I navigate to a directory, is there a way to exit yazi into that directory?
Properties
- logseq-entity
- Logseq/Entity/Question
In yazi, if I navigate to a directory, is there a way to exit yazi into that directory?
AI Answer
- AI/Response
- Yes — use the official shell wrapper function (conventionally named
y). It launches yazi with--cwd-file, which makes yazi write its working directory to a temp file on exit. The wrapper then reads that file andcds your shell to it. - Setup (bash/zsh): add this function to
~/.bashrcor~/.zshrc: - Usage: type
yinstead ofyazito launch. Pressqto quit and land in the current directory; pressQto quit without changing directory. - Fish, Nushell, PowerShell, and Windows CMD variants are documented on Quick Start | Yazi.
- Yes — use the official shell wrapper function (conventionally named
- AI/Response