oh-my-fish / oh-my-fish

The Fish Shell Framework
MIT License
10.4k stars 810 forks source link

How to install your own theme. #948

Open StLeoX opened 3 weeks ago

StLeoX commented 3 weeks ago

So sad to known this project is end of life.

This is a tutorial about "How to install your own theme."

Problem Description

Command omf install <url> will intall your repo as a Plugin. Plugin is located at /usr/share/omf/pkg/. And it will behave as a Plugin instead of a Theme. Theme is located at /usr/share/omf/pkg/themes/.

My Solution

I solve this by manually moving the directory. I move the directory of the theme from /usr/share/omf/pkg/pkg/ to /usr/share/omf/themes/, then it can be recognized as a Theme. And you can use omf theme XX to switch the theme. Note this will break omf's internal consistency. For example, the moved theme will not appear in the ~/.config/omf/bundle file, but is displayed in the omf list command as a theme.

cyber199 commented 2 weeks ago

/usr/share/omf doesn't exist on my machine and I've themes installed. I'm sure they must be stored somewhere, but it's clearly different on different machines. I'll update you if I find it.

That was fast. turns out you can just echo $OMF_PATH to get where the files are. mine were in .local/share/omf