doom: Automate creating tmp path
This commit is contained in:
parent
6323f26c42
commit
91b06019ff
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Reference in a new issue