hammerspoon
hammerspoon copied to clipboard
Can't handle `~/.hammerspoon` being a symlink
I have my config files set up like this:
'ls' -l .hammerspoon
lrwxr-xr-x@ 1 jasha staff 21 Oct 20 15:34 .hammerspoon -> stow/all/.hammerspoon
The ~/.hammerspoon file is a symlink pointing to a directory where I keep my spoons and init.lua.
With this setup I'm getting an error message:
Can't find ~/.hammerspoon/init.lua; create it and reload your config.
Rather than doing a sym-link, you're probably better off just changing the default path:
defaults write org.hammerspoon.Hammerspoon MJConfigFile "~/.config/hammerspoon/init.lua"
Related: #3103
How would I update the default path for the Spoons directory? I wanted to use my Spoons directory as a symlink too.
Is there a way to set the path to the Spoons directory using something similar to the MJConfigFile variable?
Edit: I've created an issue:
- https://github.com/Hammerspoon/hammerspoon/issues/3715
just for completeness sake: A symlink to the Spoons directory works just fine.