38 lines
1.4 KiB
Bash
38 lines
1.4 KiB
Bash
#!/bin/bash
|
|
|
|
if command -v xelatex > /dev/null 2> /dev/null; then
|
|
echo "TeX Live is already installed."
|
|
else
|
|
echo "ERROR! TeX Live has not been installed. Make sure it's installed and environment variables are configured correctly."
|
|
echo "Depends on the TeX Live edition, append corresponding environments variables into ~/.zshrc"
|
|
echo 'export PATH="/usr/local/texlive/2023/bin/x86_64-linux:$PATH"'
|
|
echo 'export MANPATH="/usr/local/texlive/2023/texmf-dist/doc/man:$MANPATH"'
|
|
echo 'export INFOPATH="/usr/local/texlive/2023/texmf-dist/doc/info:$INFOPATH"'
|
|
exit 1
|
|
fi
|
|
|
|
# emacs
|
|
brew tap d12frosted/emacs-plus
|
|
brew uninstall emacs-plus
|
|
brew install emacs-plus --with-xwidgets --with-imagemagick
|
|
brew services restart d12frosted/emacs-plus/emacs-plus@29
|
|
osascript -e 'tell application "Finder" to make alias file to posix file "/opt/homebrew/opt/emacs-plus@29/Emacs.app" at POSIX file "/Applications" with properties {name:"Emacs.app"}'
|
|
|
|
# fonts
|
|
brew tap laishulu/cask-fonts
|
|
brew install --cask font-sarasa-nerd
|
|
brew install --cask font-symbols-only-nerd-font
|
|
|
|
# lsp-bridge
|
|
pip3 install epc orjson sexpdata six setuptools paramiko rapidfuzz pynput pyobjc --break-system-packages
|
|
brew install node
|
|
npm install -g yaml-language-server
|
|
npm install -g bash-language-server
|
|
npm install -g vscode-langservers-extracted
|
|
npm install -g pyright
|
|
pip3 install ruff-lsp --break-system-packages
|
|
brew install texlab
|
|
|
|
# fetch submodules
|
|
git submodule update --init
|