#!/bin/sh # This script can be fired in crontab; it will launch a tmux sync session when none exists. ncc=~/.local/bin/nextcloud-inotify-sync tmux has-session -t nc-vimwiki || tmux new-session -d -s nc-vimwiki "${ncc} ~/.vimwiki https://cloud.example.com/remote.php/webdav/vimwiki"