emacs.d/test-startup.sh
Jason TIAN fe5dca76f3 Update Org version and ignore built-in version
The commit updates the Org version and adds a function to ignore the bui
lt-in version.
2023-05-19 02:21:18 +08:00

27 lines
913 B
Bash

#!/bin/sh -e
echo "Attempting startup..."
${EMACS:=emacs} -nw --batch \
--eval '(progn
(defvar url-show-status)
(let ((debug-on-error t)
(url-show-status nil)
(user-emacs-directory default-directory)
(user-init-file (expand-file-name "init.el"))
(load-path (delq default-directory load-path)))
(load-file user-init-file)
(my/list-packages-and-versions)
(straight-freeze-versions)
(run-hooks (quote after-init-hook))))'
ls -lrt ./straight/versions
directory="./straight/versions"
for file in "$directory"/*
do
if [ -f "$file" ]; then
cat "$file"
echo "-------------------"
fi
done
echo "Startup successful"