forked from utensil/forest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprep.sh
More file actions
executable file
·47 lines (39 loc) · 1.34 KB
/
prep.sh
File metadata and controls
executable file
·47 lines (39 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
set -eo
# # I'm experimenting using warp as my terminal
# # if warp is not installed
# # if path /Applications/Warp.app/ not exists
# if [ ! -d "/Applications/Warp.app" ]; then
# # install warp
# if [[ "$OSTYPE" == "darwin"* ]]; then
# brew install --cask warp
# echo "CMD+, then search for terminal, specify External: Osx Exec to Warp.app"
# fi
# fi
brew uninstall texlive || true
brew install --cask mactex
if ! which forester &> /dev/null; then
brew install opam watchexec
opam init --auto-setup --yes
opam update --yes
opam pin add forester git+https://git.sr.ht/~jonsterling/ocaml-forester#56de06afe952d752c1a13fdcd8bb56c5fef9956f --yes
fi
# if pandoc is not installed
if ! which pandoc &> /dev/null; then
brew install pandoc
fi
# if bun is not installed
if ! which bun &> /dev/null; then
# install bun
curl -fsSL https://bun.sh/install | bash
fi
# if just is not installed
if ! which just &> /dev/null; then
# install just
curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /usr/local/bin
fi
# required by
# Opam package conf-libffi.2.0.0 depends on the following system package that can no longer be found: libffi
brew install libffi
echo "✅ dependencies installed: mactex, forester, pandoc, bun, just"
# echo "💡 To initialize just aliases: source alias.sh"