diff --git a/agents/AGENTS.md b/agents/AGENTS.md index 36bd1a5..36f4df5 100644 --- a/agents/AGENTS.md +++ b/agents/AGENTS.md @@ -10,7 +10,7 @@ @aimemo/ 目录是你自己的工作与记忆空间,由你**全权自主掌控**。你可以任意处理这里的一切子目录和文件,只要有助于更好的管理和辅助你的工作。记录一切有用的信息,使得工作能够跨 sessions、跨设备、跨 ai models、跨 ai agents 的连续进行下去。持续更新,随时保持和项目里其他内容的同步。 -### 基础框架(推荐默认结构) +### 基础框架 建议以四个文件作为基础框架,从四个基本视角覆盖项目: @@ -21,7 +21,7 @@ | worklog.md | 事件视角:工作日志,按时间线记录工作过程与重要变化。 | 记录工作过程、决策、状态、结果等,方便复盘和回溯。持续追加内容,别把它覆写成仅包含当前状态。 | | userProfile.md | 人的视角:老板的个人背景、习惯、偏好与要求的。 | 随时补充你日常观察到的、或老板主动提供的个性化信息,帮助你和老板之间更流畅、更高效的协作。 | -**多语言** 以上的文件名,还可以含有语言标签,用于不同语言的文档,例如 productLens.enus.md, productLens.zhcn.md +以上的文件名,还可以含有语言标签,对应不同语言的文档,例如 productLens.enus.md, productLens.zhcn.md 对新项目,如果 `@aimemo/` 是空的,建议先按上表初始化。 @@ -37,7 +37,7 @@ ## 工作规范 -每次修改并验证成功之后,自动做一次 git commit。除非是非常微小、简单的修正,那就不需要即时提交。 +每次修改并验证成功之后,自动做一次 git commit。但不要自动推送,直到老板明确要求推送才推送。 ## 命名规范 diff --git a/docker_config_mirrors.sh b/docker_config_mirrors.sh new file mode 100644 index 0000000..baf1b8d --- /dev/null +++ b/docker_config_mirrors.sh @@ -0,0 +1,30 @@ + +if [ "$(uname)" = "Darwin" ] +then + CONFIG_FILE=~/.orbstack/config/docker.json +elif [ -f /etc/debian_version ] +then + CONFIG_FILE=/etc/docker/daemon.json +else + echo "Unsupported platform" + exit 0 +fi + +echo 'Current config:' +cat $CONFIG_FILE +echo + +echo "::*** Enter [y] to 配置中国加速镜像源 $CONFIG_FILE, [anything else] for no change." +read -p "***:: " DOCKER_MIRROR +if [ "$DOCKER_MIRROR" = 'y' ] +then + echo '{ "registry-mirrors": [' > $CONFIG_FILE + echo ' "https://docker.m.daocloud.io",' >> $CONFIG_FILE + echo ' "https://registry.docker-cn.com",' >> $CONFIG_FILE + echo ' "http://hub-mirror.c.163.com",' >> $CONFIG_FILE + echo ' "https://docker.mirrors.ustc.edu.cn",' >> $CONFIG_FILE + echo ' "https://mirror.ccs.tencentyun.com",' >> $CONFIG_FILE + echo ' "https://ung2thfc.mirror.aliyuncs.com"' >> $CONFIG_FILE + echo '] }' >> $CONFIG_FILE + echo 'Docker mirror in China is configured' +fi diff --git a/docker_install_debian.sh b/docker_install_debian.sh index 4e4e70b..281ef1c 100755 --- a/docker_install_debian.sh +++ b/docker_install_debian.sh @@ -49,19 +49,6 @@ docker compose version # sudo curl -L $COMPOSE_URL/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose # sudo chmod +x /usr/local/bin/docker-compose -echo "::*** Enter [y] to 配置中国加速镜像源 /etc/docker/daemon.json, [anything else] for no mirror:" -read -p "***:: " DOCKER_MIRROR -if [ "$DOCKER_MIRROR" = 'y' ] -then - echo '{ "registry-mirrors": [' > /etc/docker/daemon.json - echo ' "https://registry.docker-cn.com",' >> /etc/docker/daemon.json - echo ' "http://hub-mirror.c.163.com",' >> /etc/docker/daemon.json - echo ' "https://docker.mirrors.ustc.edu.cn",' >> /etc/docker/daemon.json - echo ' "https://mirror.ccs.tencentyun.com",' >> /etc/docker/daemon.json - echo ' "https://ung2thfc.mirror.aliyuncs.com"' >> /etc/docker/daemon.json - echo '] }' >> /etc/docker/daemon.json -fi - echo "::*** 启动docker服务?[y] for yes, [anything else] for no" read -p "***:: " StartDockerDaemon if [ "$StartDockerDaemon" = 'y' ] diff --git a/nixhome/.bashrc b/nixhome/.bashrc index edba404..8a6084b 100644 --- a/nixhome/.bashrc +++ b/nixhome/.bashrc @@ -146,9 +146,9 @@ elif [ -f /etc/ubuntu_version ]; then MYOSVERSION=Ubt`cat /etc/ubuntu_version 2>/dev/null` fi if [ "$color_prompt" = yes ]; then - PS1='\n¶ \[\033[$PSTYLE;${PTYPE}2m\]\t\[\033[00m\] \[\033[$PSTYLE;${PTYPE}5m\]\u\[\033[00m\] @\[\033[$PSTYLE;${PTYPE}2m\]\h\[\033[00m\] =\[\033[$PSTYLE;${PTYPE}5m\]$MYIPPUB\[\033[00m\] #\[\033[$PSTYLE;${PTYPE}2m\]$(uname -m),$(uname),$MYOSVERSION\[\033[00m\] \[\033[$PSTYLE;${PTYPE}5m\]$PWD/\[\033[00m\] \n§ \[\033[05;46m\]\W/\[\033[00m\] ' + PS1='\n¶ \[\033[$PSTYLE;${PTYPE}2m\]\t\[\033[00m\] \[\033[$PSTYLE;${PTYPE}5m\]\u\[\033[00m\] @\[\033[$PSTYLE;${PTYPE}2m\]\h\[\033[00m\] =\[\033[$PSTYLE;${PTYPE}5m\]$MYIPPUB\[\033[00m\] #\[\033[$PSTYLE;${PTYPE}2m\]$(uname -m),$(uname),$MYOSVERSION\[\033[00m\] \[\033[$PSTYLE;${PTYPE}5m\]$PWD/\[\033[00m\] \n[ \[\033[05;31m\]\W/\[\033[00m\] ]§ ' else - PS1='\n¶ \t \u @\h =$MYIPPUB #$(uname -m),$(uname),$MYOSVERSION $PWD/ \n§ \W/ ' + PS1='\n¶ \t \u @\h =$MYIPPUB #$(uname -m),$(uname),$MYOSVERSION $PWD/ \n[ \W/ ]§ ' fi unset color_prompt force_color_prompt @@ -193,6 +193,11 @@ fi export USERPROFILE=$HOME # add path +if [ -e ~/development/flutter ] +then + # Flutter SDK (位于 ~/development/flutter),置于 brew 之前,使 dart/flutter 指向 SDK 自带的 Dart 3.13.2(与项目 pubspec.lock 匹配) + export PATH="$HOME/development/flutter/bin:$PATH" +fi if [ -e ~/sysconfig ] then export PATH=~/sysconfig:$PATH @@ -210,4 +215,3 @@ fi ################################################################################ # End Of File: "~/.bashrc" ################################################################################ -