diff --git a/_scripts/auto_save_mac.sh b/_scripts/auto_save_mac.sh deleted file mode 100755 index 65c00a8..0000000 --- a/_scripts/auto_save_mac.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash - -# This script automatically commits/pull changes to the remote repository with a generic commit message. - -# It is aliased to `cs-update` in .zshrc - -notes_path="/Users/thomasbishop/prepos/eolas" -# SPACE_TO_UNDERSCORE="/home/thomas/repos/computer_science/_scripts/space_to_underscore_filename.sh" -# CLEAN_IMAGE_DIRECTORY="/home/thomas/repos/computer_science/_scripts/clean_image_directory.sh" - -cd "$notes_path" - -# Loop through directories and convert spaces in filenames to underscores -# source ${SPACE_TO_UNDERSCORE} -# source ${CLEAN_IMAGE_DIRECTORY} - -git pull >/dev/null 2>&1 - -changes_exist="$(git status --porcelain | wc -l)" - -# If no changes, exit. Else commit and push with timestamp -if [ "$changes_exist" -eq 0 ]; then - echo "No changes" - exit 0 -fi - -git pull >/dev/null 2>&1 -git add . -git commit -q -m "Autosave: $(date +"%Y-%m-%d %H:%M:%S")" -git push diff --git a/_scripts/query_mac.sh b/_scripts/query_mac.sh deleted file mode 100755 index 6043997..0000000 --- a/_scripts/query_mac.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -rg "$@" /Users/thomasbishop/prepos/computer_science/ --type markdown