Make dev unlink reset Omarchy path defensively

This commit is contained in:
Ryan Hughes
2026-06-07 16:35:54 -04:00
parent 5178405d19
commit 17f024d481
5 changed files with 70 additions and 27 deletions
+3 -2
View File
@@ -4,8 +4,9 @@
# /usr/share/uwsm/env.d/10-omarchy (Hyprland session via uwsm)
# /usr/share/omarchy/default/bash/envs (bash rc chain; SSH/non-login)
# /etc/omarchy.conf is written by omarchy-dev-link. When absent, force the
# packaged default instead of preserving a stale inherited value.
# /etc/omarchy.conf is written by omarchy-dev-link and reset by
# omarchy-dev-unlink. When absent, force the packaged default instead of
# preserving a stale inherited value.
if [ -f /etc/omarchy.conf ]; then
. /etc/omarchy.conf
: "${OMARCHY_PATH:=/usr/share/omarchy}"
+1 -1
View File
@@ -4,7 +4,7 @@
local home = os.getenv("HOME")
-- /etc/omarchy.conf wins over process env so dev-link survives stale sessions.
-- /etc/omarchy.conf wins over process env so dev-link/unlink survives stale sessions.
local function read_dev_link_omarchy_path()
local f = io.open("/etc/omarchy.conf", "r")
if not f then return nil end