summaryrefslogtreecommitdiff
path: root/etc/functions/newsbeuter
blob: dd43fb93e2e8a3fc72c3341dc1dfcc8787a4cb91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
## vim:ft=zsh
## wrapper around newsbeuter to keep the feeds in sync
autoload fdie

function __sync {
	if [[ $HOST != aneurysm ]] {
		unisync unison aneurysm .newsbeuter || fdie "sync failed"
	}
}

__sync || return 1
command newsbeuter $*
__sync