start.sh 772 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/bash
  2. # setup git for claude
  3. git config --global gpg.format ssh
  4. git config --global user.signingkey ~/.ssh/id_ed25519.pub
  5. git config --global commit.gpgsign true
  6. # install air
  7. go install github.com/air-verse/air@latest
  8. install zsh-autosuggestions
  9. git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
  10. if ! grep -q "zsh-autosuggestions" ~/.zshrc; then
  11. # add zsh-autosuggestions to plugins list
  12. sed -i "/^plugins=(/s/)/ zsh-autosuggestions)/" ~/.zshrc
  13. fi
  14. # init nginx config dir
  15. ./.devcontainer/init-nginx.sh
  16. # install app dependencies
  17. echo "Installing app dependencies"
  18. cd app && pnpm install -f
  19. cd ..
  20. # install docs dependencies
  21. echo "Installing docs dependencies"
  22. cd docs && pnpm install -f
  23. cd ..