2024-12-28 10:59:10 +08:00
#!/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
2025-01-19 22:28:23 +08:00
brew install emacs-plus --with-xwidgets --with-imagemagick --with-dbus --with-ctags
2024-12-28 10:59:10 +08:00
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
pip3 install ruff-lsp --break-system-packages
brew install texlab
2025-01-19 22:28:23 +08:00
brew install basedpyright
2024-12-28 10:59:10 +08:00
2024-12-29 10:50:47 +08:00
# aider
brew install aider
2025-01-03 18:10:02 +08:00
# rime
brew install --cask squirrel
brew install librime
2025-01-21 07:55:28 +08:00
git clone https://github.com/iDvel/rime-ice.git && cd rime-ice
sed -i '' 's/page_size: 5/page_size: 9/' default.yaml
wget https://github.com/amzxyz/RIME-LMDG/releases/download/LTS/wanxiang-lts-zh-hans.gram
cat <<EOL > rime_ice.custom.yaml
patch:
grammar:
language: wanxiang-lts-zh-hans.gram
collocation_max_length: 5
collocation_min_length: 2
translator/contextual_suggestions: true
translator/max_homophones: 7
translator/max_homographs: 7
EOL
cd ..
cp -r ./rime-ice/* ~/.config/fcitx/rime/
cp -r ./rime-ice/* ~/Library/Rime
rm -rf rime-ice
brew install --cask switchkey
2025-01-03 18:10:02 +08:00
2025-01-19 22:28:23 +08:00
# pomodoro
brew install terminal-notifier
2024-12-28 10:59:10 +08:00
# fetch submodules
git submodule update --init