add WorkDirOfTheDay

create a directory in ~/archive named work_$TODAY and link it to ~/WORK.
So it exists a Directory for every day, where the daily work can be
saved
This commit is contained in:
Jakobus Schürz 2020-01-21 15:11:09 +01:00
parent 18a7838459
commit 6c367db234

View file

@ -281,6 +281,13 @@ if [[ $- = *i* ]] ; then
# Go HOME
#cd ${HOME}
# Create and link Work-Dir of the Day
WDOTD=$(date "+${HOME}/archive/work_%Y%m%d")
[ -e $WDOTD ] || mkdir -p "${WDOTD}"
[ -h "${HOME}/WORK" ] && ln -sf "${WDOTD}" "${HOME}/WORK"
echo "bashrc_add sourced" 1>&2