oh-my-posh prompt plugin for Yazi file manager.
- Yazi Need latest main branch code, Needs the latest commit. Or use v 0.4.0 release or newer. Please use below command to install.
cargo install --locked --git https://github.com/sxyazi/yazi.git yazi-fm yazi-cliOr if you're on an arch based distro, you can use your fav AUR helper.
paru yazi-gitgit clone https://github.com/saumyajyoti/omp.yazi.git ~/.config/yazi/plugins/omp.yazigit clone https://github.com/saumyajyoti/omp.yazi.git %AppData%\yazi\config\plugins\omp.yaziAdd this to ~/.config/yazi/init.lua:
require("omp"):setup()If you want to define a custom config file, you can specify config argument for setup like this:
require("omp"):setup({ config = "/home/user/.config/omp.json" })Make sure you have https://github.com/jandedobbeleer/oh-my-posh installed and in your PATH.
If you use a oh-my-posh theme with a background colour, it might look a bit to cramped on just the one line Yazi gives the header by default. You can add some space for the header using the Fullborder plugin.
ya pack -a yazi-rs/plugins#full-border
- sxyazi for providing the code for this plugin.
