Go to file
Konano ebffc87b78 feat(zsh): install iTerm2 integration during lazy update
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.
2026-09-27 21:55:34 +08:00
files feat(zsh): install iTerm2 integration during lazy update 2026-09-27 21:55:34 +08:00
configure_priv.sh fix: 调整剩余 rm 命令的参数顺序 2026-09-09 17:40:26 +08:00
configure_user.sh fix: 修复 SSH 密钥名称为空时的参数传递 2026-09-09 17:40:26 +08:00
init_root.sh configure docker rootless 2024-10-17 08:56:55 +08:00
init_sudo.sh refactor 2024-08-02 19:16:07 +08:00
init_user.sh refactor 2024-08-02 19:16:07 +08:00
README.md 更新 README.md 2025-07-03 15:12:06 +08:00
run.sh refactor 2024-08-02 19:16:07 +08:00
update_file.py eza now support aarch64! 2024-09-14 10:57:49 +08:00
update.sh feat(zsh): install iTerm2 integration during lazy update 2026-09-27 21:55:34 +08:00
utils.sh feat(utils.sh): 添加密码输入功能 2024-11-08 17:53:30 +08:00

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