1
0

start.sh 615 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. # install air
  3. go install github.com/air-verse/air@latest
  4. install zsh-autosuggestions
  5. git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
  6. if ! grep -q "zsh-autosuggestions" ~/.zshrc; then
  7. # add zsh-autosuggestions to plugins list
  8. sed -i "/^plugins=(/s/)/ zsh-autosuggestions)/" ~/.zshrc
  9. fi
  10. # init nginx config dir
  11. ./.devcontainer/init-nginx.sh
  12. # install app dependencies
  13. echo "Installing app dependencies"
  14. cd app && pnpm install -f
  15. cd ..
  16. # install docs dependencies
  17. echo "Installing docs dependencies"
  18. cd docs && pnpm install -f
  19. cd ..