commit c544783245dbffa534d6a358936f3b4f0012672d parent 40fd691f5e2b2375f40057978ca2ed0c206a3efa Author: Alex Balgavy <a.balgavy@gmail.com> Date: Mon, 27 Jan 2020 15:00:13 +0100 vim: ultisnips launchd job snippet Former-commit-id: b0733978969e2d052bc69f54d4ff9c5ec29428fd Diffstat:
A | vim/ultisnips/all.snippets | | | 19 | +++++++++++++++++++ |
1 file changed, 19 insertions(+), 0 deletions(-)
diff --git a/vim/ultisnips/all.snippets b/vim/ultisnips/all.snippets @@ -0,0 +1,19 @@ +snippet launchd "A launchd job template" b +<!-- Documentation here: https://www.launchd.info/ --> +<?xml version="1.0" encoding="UTF-8" ?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> + <dict> + <key>Label</key> + <string>${1:com.example.app}</string> + <key>Program</key> + <string>${2:/path/to/script}</string> + <key>RunAtLoad</key> + <${3:true if run on boot/login}/> + <key>StartInterval</key> + <integer>${4:interval in which to run in seconds}</integer> + <key>KeepAlive</key> + <${5:true if the job should always be running, or e.g. dict with SuccessfulExit}/> + </dict> +</plist> +endsnippet