-
-
Notifications
You must be signed in to change notification settings - Fork 790
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
when environment variable WEZTERM_CONFIG_FILE is specified, wezterm.config_dir is not part of modules search path #5579
Comments
workaround:
junctioning the wezterm config directory achieves the same effect as The config file can also be provided by the command line Q) When would one prefer to use the environment variable method over a filesystem junction method? |
I'm not really clear on what you're doing, but I do want to note that you can put something like this at the top of your main local wezterm = require 'wezterm'
package.path = package.path .. ";" .. wezterm.config_dir .. "/?.lua" You can arbitrarily change |
Thanks for your reply and for wezterm
Ref : |
What Operating System(s) are you seeing this problem on?
Windows
Which Wayland compositor or X11 Window manager(s) are you using?
NA (Windows)
WezTerm version
wezterm 20240203-110809-5046fc22
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
No, and I'll explain why below
I guess the scoop installed version is sufficiently uptodate to demonstrate this bug.
Describe the bug
For the first time i was thinking of making a module as suggested in this link
https://www.reddit.com/r/wezterm/comments/1bbq6ro/i_implemented_a_theme_switcher/
The thing is, I install wezterm using scoop.
I create and maintain the configuration file in a
.../scoopg/persist/
folder.So I have an environment variable
WEZTERM_CONFIG_FILE
setup to point to thewezterm.lua
fileI tried many ways of trying to require the module including giving the path as part of the module name but that does not work
local features= require 'features' ;
Perhaps the
wezterm.config_dir
should also be part of the path search ?One could say I should place the
features.lua
in any one of all these other places.But my intention is to manage my wezterm configuration in the
scoopg/persists/wezterm
folder.It seems logical that related configuration files should also be there.
It's a bad idea to place it along with the wezterm binary in
scoopg/apps/wezterm/current/wezterm_modules
because, scoop deletes and recreates that folder whenever there is a wezterm update.I came up with a workaround described in next comment, but it seems kludgy.
To Reproduce
Configuration
local features=require "features" ;
Expected Behavior
when
WEZTERM_CONFIG_FILE
is specified, perhaps the config dir path search should includewezterm.config_dir
Logs
Anything else?
Ref
The text was updated successfully, but these errors were encountered: