Skip to content

oh-my-posh prompt plugin for Yazi file manager

License

Notifications You must be signed in to change notification settings

chenxin-yan/omp.yazi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

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.

About

oh-my-posh prompt plugin for Yazi file manager

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%