Use Chezmoi more
This commit is contained in:
18
run_once_before_configure-hammerspoon.sh
Normal file
18
run_once_before_configure-hammerspoon.sh
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
echo "Configuring Hammerspoon to use ~/.config/hammerspoon..."
|
||||||
|
|
||||||
|
if ! command -v hammerspoon &> /dev/null; then
|
||||||
|
echo "Warning: Hammerspoon not found. Setting preference anyway for when it's installed."
|
||||||
|
fi
|
||||||
|
|
||||||
|
defaults write org.hammerspoon.Hammerspoon MJConfigFile "~/.config/hammerspoon/init.lua"
|
||||||
|
|
||||||
|
if defaults read org.hammerspoon.Hammerspoon MJConfigFile &> /dev/null; then
|
||||||
|
echo "✅ Hammerspoon configured to use ~/.config/hammerspoon/init.lua"
|
||||||
|
else
|
||||||
|
echo "❌ Failed to set Hammerspoon config path"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user