diff options
| author | Craig Jennings <c@cjennings.net> | 2025-05-28 15:02:10 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-05-28 15:02:10 -0500 |
| commit | 3d617548a07be9c33474c6014e5795526265b133 (patch) | |
| tree | 5a7d552419530d35296471de0526c45677edf4d9 /scripts | |
| parent | f5a4c4a477825cd538ef4388642eca06cedeedba (diff) | |
| download | dotemacs-3d617548a07be9c33474c6014e5795526265b133.tar.gz dotemacs-3d617548a07be9c33474c6014e5795526265b133.zip | |
script to delete eln and elc; updated tasks; etc
and don't compile org-element files
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/delete-elisp-compiled-files.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/scripts/delete-elisp-compiled-files.sh b/scripts/delete-elisp-compiled-files.sh new file mode 100755 index 00000000..b64a6540 --- /dev/null +++ b/scripts/delete-elisp-compiled-files.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +location=$HOME/.emacs.d/ + +echo ""; echo "You are about to delete emacs lisp compiled files (.eln and .elc) recursively from $location"; + +# Show the files it will delete +echo "The following files will be deleted:" +find $location -type f \( -name "*.eln" -o -name "*.elc" \) -print + + +echo ""; echo "" +read -p "Are you sure you want to continue? (y/n) " -n 1 -r +echo # move to a new line +if [[ $REPLY =~ ^[Yy]$ ]] +then + echo "Deleting files..." + find $location -type f \( -name "*.eln" -o -name "*.elc" \) -exec rm -f {} + + echo "Files deleted." +else + echo "Operation cancelled." +fi + +echo ""; echo "" |
