safer atuin daemon init (was breaking on MacOS)
This commit is contained in:
parent
5535792e42
commit
2af30b88c0
|
@ -10,7 +10,7 @@ if is_cmd atuin; then
|
||||||
# communicate with the running daemon rather than attempting direct database access.
|
# 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
|
# The setup-atuin-daemon.sh script should be run on ZFS systems to create and
|
||||||
# start the systemd service for the daemon.
|
# 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"
|
export ATUIN_CONFIG_DIR="$HOME/.config/atuin/with-daemon"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue