summaryrefslogtreecommitdiff
path: root/etc/functions/newsbeuter
diff options
context:
space:
mode:
Diffstat (limited to 'etc/functions/newsbeuter')
-rwxr-xr-xetc/functions/newsbeuter12
1 files changed, 12 insertions, 0 deletions
diff --git a/etc/functions/newsbeuter b/etc/functions/newsbeuter
new file mode 100755
index 0000000..53c9c21
--- /dev/null
+++ b/etc/functions/newsbeuter
@@ -0,0 +1,12 @@
+## vim:ft=zsh
+autoload fdie
+
+function __sync {
+ if [[ $HOST != aneurysm ]] {
+ unisync unison derf.homelinux.org .newsbeuter || fdie "sync failed"
+ }
+}
+
+__sync || return 1
+command newsbeuter $*
+__sync