doom: Automate creating tmp path

This commit is contained in:
Payas Relekar 2023-11-18 00:10:15 +05:30
parent 6323f26c42
commit 91b06019ff

View file

@ -1,7 +1,11 @@
{ pkgs, lib, ... }:
let
doombin = "/home/payas/.config/emacs/bin/doom";
doomtmp = "/home/payas/.config/emacs/.local/cache/tmp/auto-save/";
doomsync = ''
if [ ! -d "${doomtmp}" ]; then
mkdir -p ${doomtmp};
fi
if [ -x "${doombin}" ]; then
timeout 100s ${doombin} sync;
fi