create WDOTD in yearly and monthly folder

This commit is contained in:
Jakobus Schürz 2020-01-21 15:14:46 +01:00
parent 6c367db234
commit a1f2238de6

View file

@ -283,7 +283,7 @@ if [[ $- = *i* ]] ; then
# Create and link Work-Dir of the Day
WDOTD=$(date "+${HOME}/archive/work_%Y%m%d")
WDOTD=$(date "+${HOME}/archive/work/%Y/%m/work_%Y%m%d")
[ -e $WDOTD ] || mkdir -p "${WDOTD}"
[ -h "${HOME}/WORK" ] && ln -sf "${WDOTD}" "${HOME}/WORK"