Skip to content

Latest commit

 

History

History
59 lines (39 loc) · 1.5 KB

README.md

File metadata and controls

59 lines (39 loc) · 1.5 KB

omp.yazi

oh-my-posh prompt plugin for Yazi file manager.

screenshot

Requirements

  • 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

Installation

Linux / MacOS

git clone https://github.com/saumyajyoti/omp.yazi.git ~/.config/yazi/plugins/omp.yazi

Windows

git clone https://github.com/saumyajyoti/omp.yazi.git %AppData%\yazi\config\plugins\omp.yazi

Usage

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.

Extra

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

Acknowledgements

  • sxyazi for providing the code for this plugin.