From 2af30b88c0647e690ed3e0e3c86b190454faab56 Mon Sep 17 00:00:00 2001 From: "Lockszmith (VAST@MacBook)" Date: Wed, 30 Apr 2025 10:06:30 -0400 Subject: [PATCH] safer atuin daemon init (was breaking on MacOS) --- .../_home/private_dot_config/sz.env/980_atuin_daemon.env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chezmoi.roots/_home/private_dot_config/sz.env/980_atuin_daemon.env b/chezmoi.roots/_home/private_dot_config/sz.env/980_atuin_daemon.env index 42b2a42..a9f35f0 100644 --- a/chezmoi.roots/_home/private_dot_config/sz.env/980_atuin_daemon.env +++ b/chezmoi.roots/_home/private_dot_config/sz.env/980_atuin_daemon.env @@ -10,7 +10,7 @@ if is_cmd atuin; then # communicate with the running daemon rather than attempting direct database access. # The setup-atuin-daemon.sh script should be run on ZFS systems to create and # start the systemd service for the daemon. - if pgrep -f "atuin daemon" > /dev/null; then + if pgrep -f "atuin daemon" > /dev/null && [ -d "$HOME/.config/atuin/with-daemon" ]; then export ATUIN_CONFIG_DIR="$HOME/.config/atuin/with-daemon" fi