-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for themes #708
Comments
This makes sense, but do we just save plugin themes in ~/.config/fish/themes regardless of |
It looks like there is no equivalent I think the theme directory is sort of like how you can't set custom conf.d directories. |
Gotcha, 👍. Thank you for the info!
Yes, but one can easily replicate that functionality by sourcing every |
Never even thought of that! I'll take a closer look at |
@jorgebucaran it looks like the paths used to search for themes are hardcoded, unfortunately. fish-shell/.../fish_config.fish (line 145) I think the best bet is to just have Fisher put the themes in |
Themes are new in Fish 3.4 (fish-shell/fish-shell/pull/8132).
@nickeb96 Have you had a chance to try this out? |
@jorgebucaran Just tested that branch out and it works great. Thanks! |
Themes are new in Fish 3.4 (fish-shell/fish-shell/pull/8132).
In case someone stumbles upon this issue looking for more details on how to support themes in plugins, here are a couple things that helped me. First, since there's no such thing as a The simple solution to this is to use a symlink for your themes directory:
Second, if you did that, now you created a situation where fisher is fully in control of your themes directory, but what if you also want to have local themes in addition to ones managed by fisher? Remember that fisher supports local plugins too, so do something like this: # make a local theme directory plugin (I called mine "themer")
mkdir -p $__fish_config_dir/plugins/themer/themes
# now install your plugin, using single ticks if you want to keep the
# variable in your fish_plugins file
fisher install '$__fish_config_dir/plugins/themer' Now, put any local theme files in your themer plugin and you can still use Fisher with a separate @jorgebucaran - is it worth documenting this anywhere more visible? Have you considered enabling the GitHub wiki feature for stuff like this? I also opened a ticket with the Fish project to request a |
Could you digest this a bit and add it to the readme? I think we can still manage without a wiki (if we must, we can enable it, but perhaps not just yet). |
Fish 3.4 was released a few weeks ago and allows users to set
fish_color_*
variables from *.theme files withfish_config theme choose/save <theme name>
. (changelog)Custom themes can be used by placing them in ~/.config/fish/themes/ and it would be really convenient if Fisher could place themes from plugins here.
I think the best way to do this would be to just have the same logic used for functions. So plugin/themes/*.theme could get installed to ~/.config/fish/themes/ the same way plugin/functions/*.fish get installed to ~/.config/fish/functions/ by Fisher.
The text was updated successfully, but these errors were encountered: