Add dev-mode option

- Clean up multi-platform support
- Add dev-mode option to load local plugins automatically
This commit is contained in:
2024-10-01 11:46:03 -04:00
parent 442dc9ce3a
commit d80b364cc0
10 changed files with 26 additions and 719 deletions
+20
View File
@@ -0,0 +1,20 @@
-- ╭─────────────────────────────────────────────────────────╮
-- │ Battery │
-- ╰─────────────────────────────────────────────────────────╯
local M = {}
local wezterm = WEZTERM
if DEVMODE then
-- Use the local dev plugin
BATTERIES = wezterm.plugin.require("file://" .. wezterm.home_dir .. "/projects/battery.wez")
else
-- Use the remote plugin
BATTERIES = wezterm.plugin.require("https://github.com/rootiest/battery.wez")
end
-- Invert the icon color brightness
BATTERIES.invert = true
return M