calcurse icon indicating copy to clipboard operation
calcurse copied to clipboard

Feature Request: Environment Variable for calcurse-caldav Hostname, Path, and Username

Open josephmturner opened this issue 4 years ago • 0 comments

Thank you for this great program! It's clean and easy to use.

I track my dotfiles in a publicly-hosted git repo, and I'd like to track everything inside ~/.config/calcurse, but I'm not comfortable sharing the Hostname, Path, and Username to my Nextcloud server.

Currently, I have a shell function in my ~/.bashrc which leverages the CALCURSE_CALDAV_PASSWORD environment variable:

authenticated-calcurse-caldav() {
	CALCURSE_CALDAV_PASSWORD=$(pass show calcurse | head -n1) calcurse-caldav
}

Assuming I store Hostname, Path, and Username in the same pass entry, it would be nice to be able to do something like:

authenticated-calcurse-caldav() {
	CALCURSE_CALDAV_PASSWORD=$(pass show nextcloud/joseph | head -n1) \
	CALCURSE_CALDAV_HOSTNAME=$(pass show nextcloud/joseph | head -n2) \
	CALCURSE_CALDAV_PATH=$(pass show nextcloud/joseph | head -n3) \
	CALCURSE_CALDAV_USERNAME=$(pass show nextcloud/joseph | head -n4) \
	calcurse-caldav
}

I'm open to any ideas for accomplishing this task. Thank you!!

josephmturner avatar May 09 '21 08:05 josephmturner