~kris/dots

srice

ref: 9f828eb14bdd54d2c4fd8a3b2c90253021df3152 srice/.config/conky/lean-conky/main.lua -rw-r--r-- 473 bytes
9f828eb1 — Kris Yotam mksh: backslash-escape commands in history hook to bypass module aliases (wc=tokei, tr=transmission-remote, cat=bat) 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
local _dir_ = debug.getinfo(1, "S").source:sub(2):match("(.*[/\\])") or "./"
if not string.find(package.path, _dir_ .. "lib/?.lua;", 1, true) then
    package.path = _dir_ .. "lib/?.lua;" .. _dir_ .. "lib/?/init.lua;" .. package.path
end
local utils = require("utils")

-- load conky and lcc settings, lcc is globally accessible
local conf = utils.load_in_env(conky_config)
-- global functions defined in the required packages (components, tform) are
-- also available now