A collection of files I use to maintain my zettelkasten.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

16 lines
293 B

#!/bin/sh
if [ -z "${TITFICHE_HOME}" ]
then
export TITFICHE_HOME="${XDG_CONFIG_HOME:-${HOME}/.config}/titfiche"
else
export TITFICHE_HOME="${TITFICHE_HOME%/}"
fi
if [ -n "${1}" ]
then
$EDITOR "${1}"
else
mkdir -p "${TITFICHE_HOME}"
$EDITOR "${TITFICHE_HOME}" -c "call NewTitfiche()"
fi