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-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()
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.