Skip to content

Commit

Permalink
Fix package.paths under userruntime w/ unexpanded tilde
Browse files Browse the repository at this point in the history
Lua doesn't automatically expand tildes to `$HOME`, as this code seems
to assume.

Fix #3518
  • Loading branch information
habibalamin authored and cmsj committed Nov 12, 2024
1 parent f184d91 commit dbfd067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Hammerspoon/setup.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local modpath, frameworkspath, prettypath, fullpath, configdir, docstringspath, hasinitfile, autoload_extensions = ...

local userruntime = "~/.local/share/hammerspoon/site"
local userruntime = os.getenv("HOME") .. "/.local/share/hammerspoon/site"

local paths = {
configdir .. "/?.lua",
Expand Down

0 comments on commit dbfd067

Please sign in to comment.