From d8d126e51ecb13196b3576683a10582d72bbdb81 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 30 Sep 2025 14:33:39 +0200 Subject: [PATCH] office: Remove left-over calcurse alias I have not used calcurse in a _long_ time, preferring khal nowadays. This removes an old (vdir-enabling) alias in the office module. --- office/.config/sh/alias.d/calcurse-vdir.sh | 27 ---------------------- 1 file changed, 27 deletions(-) delete mode 100644 office/.config/sh/alias.d/calcurse-vdir.sh diff --git a/office/.config/sh/alias.d/calcurse-vdir.sh b/office/.config/sh/alias.d/calcurse-vdir.sh deleted file mode 100644 index 91a8403..0000000 --- a/office/.config/sh/alias.d/calcurse-vdir.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env sh -# -# Wraps around the calcurse invocation and syncs calendar data -# to local vdir - given by default below. -# -# For now ONLY PROVIDES ONE-WAY Synchronization, see below. - -# The path in which *the calendars* reside (i.e. toplevel with access to all paths) -CAL_PATH="$HOME/documents/calendars" - -calcurse() { - find "$CAL_PATH" -maxdepth 1 -type d -exec calcurse-vdir import {} \; -} - -# Enable two-way sync. One issue is that calcurse would sync everything -# into the top-level path (or the selected calendar path) since it makes -# not the same differentiation as the vdir between calendars. -# FIXME Not sure how to resolve currently. -# -# The below works as a simple two-way synchronization on exiting calcurse. -# To function the invocation has to be turned from a function above to an -# executable shell-script file instead. -# trap 'calcurse_export' 0 -# -# calcurse_export() { -# calcurse-vdir export "$CAL_PATH" -# }