From 8d3399c0e3a995d254bf6ff93403dedbf49f1cb1 Mon Sep 17 00:00:00 2001 From: Constantin Simonis Date: Mon, 16 Jun 2025 11:41:12 +0200 Subject: [PATCH] chore(setup): update .zshenv with script directory path --- setup | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup b/setup index faa0244..cfa14d0 100755 --- a/setup +++ b/setup @@ -20,6 +20,9 @@ echo "[+] Creating symlinks..." if [ ! -f "$PWD/.zshenv" ]; then cp "$PWD/.zshenv.template" "$PWD/.zshenv" + + SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + sed -i "s|^export DOTFILES_INSTALL_DIR=.*|export DOTFILES_INSTALL_DIR=${SCRIPT_DIR}|" .zshenv fi stow .