Bundle the iTerm2 zsh integration for offline use. Let update.sh repair a missing or empty installation using curl with redirect support, falling back to the bundled copy on offline, missing curl, failed downloads, or empty responses. Stage the result beside the target before moving it into place. Append the readability-checked source line to .zshrc only when missing, including when .zshrc does not exist or lacks a final newline. Keep configure_priv.sh and the installation flow unchanged. |
||
|---|---|---|
| files | ||
| configure_priv.sh | ||
| configure_user.sh | ||
| init_root.sh | ||
| init_sudo.sh | ||
| init_user.sh | ||
| README.md | ||
| run.sh | ||
| update_file.py | ||
| update.sh | ||
| utils.sh | ||
lazy
一句话命令:sh -c "$(wget -qO- cc.c-4.cc/lazy.sh)"
Gist: https://gist.github.com/Konano/d3236c9546a362438096eab1d380b4c7
root 用户请使用 init_root.sh
有 sudo 权限的普通用户请使用 init_sudo.sh
无 sudo 权限的普通用户请使用 init_user.sh
配置文件
TODO
-
安装 nvm 管理 nodejs 和 npm
-
安装 docker 和 docker-compose(参考链接)
-
/etc/apt/sources.list.d: docker, yarn, nginx -
配置 docker 的 rootless 模式
-
开启自启 docker,docker (rootless) 和 pm2
-
npm 镜像:npm config set registry https://registry.npm.taobao.org/
Others
systemctl --user enable docker
sudo env PATH=$PATH:/usr/local/bin /home/ubuntu/.config/yarn/global/node_modules/pm2/bin/pm2 startup systemd -u ubuntu --hp /home/ubuntu