oh-my-posh prompt plugin for Yazi file manager.
- Yazi Need latest main branch code, Needs the latest commit. Or use v 0.3.0 release or newer. Please use below command to install.
cargo install --locked --git https://github.com/sxyazi/yazi.git yazi-fm yazi-cli
Or if you're on an arch based distro, you can use your fav AUR helper.
paru yazi-git
git clone https://github.com/saumyajyoti/omp.yazi.git ~/.config/yazi/plugins/omp.yazi
git clone https://github.com/saumyajyoti/omp.yazi.git %AppData%\yazi\config\plugins\omp.yazi
Add this to ~/.config/yazi/init.lua
:
require("omp"):setup()
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.