From efe2322f8cc4cee1ed13574cd83773001da023c0 Mon Sep 17 00:00:00 2001 From: thomasabishop Date: Sun, 25 Feb 2024 19:38:14 +0000 Subject: [PATCH] Autosave: 2024-02-25 19:38:14 --- scripts/auto_save.sh | 17 +++++++---------- ...clean_image_directory.sh => purge_images.sh} | 2 +- ...yphen_to_underscore.sh => tidy_filenames.sh} | 0 zk/Binary_encoding_of_text.md | 3 +-- 4 files changed, 9 insertions(+), 13 deletions(-) rename scripts/{clean_image_directory.sh => purge_images.sh} (74%) rename scripts/{hyphen_to_underscore.sh => tidy_filenames.sh} (100%) diff --git a/scripts/auto_save.sh b/scripts/auto_save.sh index 6e5de1d..ed560d1 100755 --- a/scripts/auto_save.sh +++ b/scripts/auto_save.sh @@ -1,18 +1,15 @@ #!/bin/bash -# This script automatically commits/pull changes to the remote repository with a generic commit message. +# Automatically commits/pull changes to the remote repository with a generic commit message. -# It is aliased to `cs-update` in .zshrc +# ZK_PAT="/home/thomas/repos/eolas" +tidy_filenames="/home/thomas/repos/eolas/scripts/tidy_filenames.sh" +purge_images="/home/thomas/repos/eolas/scripts/purge_images.sh" -notes_path="/home/thomas/repos/eolas" -space_to_underscore="/home/thomas/repos/eolas/_scripts/space_to_underscore_filename.sh" -clean_image_directory="/home/thomas/repos/eolas/_scripts/clean_image_directory.sh" +cd $EOLAS_DIR -cd "$notes_path" - -# Loop through directories and convert spaces in filenames to underscores -source ${space_to_underscore} -source ${clean_image_directory} +source ${tidy_filenames} +source ${purge_images} git pull >/dev/null 2>&1 diff --git a/scripts/clean_image_directory.sh b/scripts/purge_images.sh similarity index 74% rename from scripts/clean_image_directory.sh rename to scripts/purge_images.sh index 3ebe2c9..55547b6 100755 --- a/scripts/clean_image_directory.sh +++ b/scripts/purge_images.sh @@ -1,6 +1,6 @@ #!/bin/bash -# If there are images in _img/ that are not being used in the workspace, delete them +# If there are images in img/ that are not being used by the Zettelkasten, delete them find /home/thomas/repos/eolas/_img -type f | while read filename; do rg "${filename##*/}" ../ --type markdown >/dev/null 2>&1 if [ "$?" -eq 1 ]; then diff --git a/scripts/hyphen_to_underscore.sh b/scripts/tidy_filenames.sh similarity index 100% rename from scripts/hyphen_to_underscore.sh rename to scripts/tidy_filenames.sh diff --git a/zk/Binary_encoding_of_text.md b/zk/Binary_encoding_of_text.md index 6361a65..4a0a60a 100644 --- a/zk/Binary_encoding_of_text.md +++ b/zk/Binary_encoding_of_text.md @@ -4,8 +4,7 @@ tags: [binary, binary-encoding] # Text encoding -Text encoding is an applied instance of -[binary encoding](Binary_encoding.md). +Text encoding is an applied instance of [binary encoding](Binary_encoding.md). ## ASCII