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:
parent
18a7838459
commit
6c367db234
1 changed files with 7 additions and 0 deletions
|
@ -281,6 +281,13 @@ if [[ $- = *i* ]] ; then
|
||||||
# Go HOME
|
# Go HOME
|
||||||
#cd ${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
|
echo "bashrc_add sourced" 1>&2
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue