Add Code directory and some helpers to seed and sync it.

This commit is contained in:
2025-08-14 16:12:04 -07:00
parent 8ef92669cd
commit 7ceb1f436b
2 changed files with 42 additions and 1 deletions

View File

@@ -52,7 +52,8 @@ else
echo "ERROR: bashrc.sh not found, skipping." >&2
fi
echo -e "\n`date` - Cleanup"
echo -e "\n`date` - Directoriee"
if [[ -d ~/TRASH ]]; then
rm -rfv ~/TRASH
fi
@@ -61,6 +62,13 @@ if [[ ! -e ~/storage/shared/TRASH ]]; then
fi
ln -s ~/storage/shared/TRASH ~/TRASH
if [[ ! -d ~/Code && ! -d ~/storage/shared/Code ]]; then
mkdir -pv ~/storage/shared/Code
ln -s ~/storage/shared/Code ~/Code
fi
echo -e "\n`date` - Cleanup"
if [[ -n $DIR && $DIR != "/" && -d .git ]]; then
echo "We are in a git clone, remove the project."
cd ..