Something went wrong. Try again.
Monorepo for Aesthetic.Computer aesthetic.computer
Something went wrong. Try again.
core aesthetic
1.2 kB · 42 lines
12345678910111213141516171819202122232425262728293031323334353637383940414243#!/usr/bin/env bash# boot up the platform in a terminal# running emacs insideclearecho -e "\n\033[1;37m*** Booting the Aesthetic Computer Platform ***\033[0m\n"# clear out everything inside .emacs.d except the .gitignoreif [ "$1" = "reset:emacs" ]; then echo "*** -> Clearing emacs plugins." cd ~/.emacs.d find . -mindepth 1 -maxdepth 1 -not -name '.gitignore' -not -name '.' -not -name '..' | xargs rm -rf > /dev/null 2>&1 cd - > /dev/nullelse echo "*** -> Using cached emacs configuration."fiecho "*** -> Starting emacs daemon..."# Kill any existing emacs daemonemacsclient -e '(kill-emacs)' 2>/dev/null || true# Start emacs daemon with the aesthetic computer configurationemacs -q --daemon -l ~/aesthetic-computer/dotfiles/dot_config/emacs.el# Wait for daemon to be readyecho "*** -> Waiting for daemon to be ready..."while ! emacsclient -e 't' >/dev/null 2>&1; do sleep 1doneif [ "$1" = "fish" ]; then echo "*** -> Starting fish shell..." fishelse echo "*** -> Starting emacsclient..." # Start emacsclient with aesthetic backend emacsclient -c --eval "(aesthetic-backend (quote \"$1\"))"fiecho -e "\n\033[1;35m*** Goodbye ***\033[0m\n"