safer atuin daemon init (was breaking on MacOS)

This commit is contained in:
Lockszmith (VAST@MacBook) 2025-04-30 10:06:30 -04:00
parent 5535792e42
commit 2af30b88c0
1 changed files with 1 additions and 1 deletions

View File

@ -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