start.sh 559 B

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