Adds old zsh functions untouched.

This commit is contained in:
Tom Hicks
2024-09-20 17:25:20 -07:00
parent 13eeb245e3
commit ccd795ee6f
4 changed files with 42 additions and 0 deletions

6
.zsh_functions/whatsapp-backup Executable file
View File

@@ -0,0 +1,6 @@
whatsapp-backup() {
TIMESTAMP=`python3 -c "from datetime import datetime; print(datetime.now().strftime('%Y-%m-%d.%H-%M-%S.%f'))"`
DESTDIR=~/Downloads/WhatsApp-export-$TIMESTAMP
mkdir -p $DESTDIR
find ~/Library/Group\ Containers/group.net.whatsapp.WhatsApp.shared/ -type f -iname '*.*' -exec cp "{}" $DESTDIR \;
}