feat(agy): add GEMINI.md persistent context memory and sync-agy-session.sh
This commit is contained in:
1 parent
6b589fa62a
commit
ba3cf726b4
3 files changed
+111
-5
No files matched your search
@@ -9,12 +9,12 @@ export LANG="en_US.UTF-8"
|
||||
export LC_ALL="en_US.UTF-8"
|
||||
export TERM="xterm-256color"
|
||||
|
||||
mkdir -p "$HOME/workspace"
|
||||
mkdir -p "$HOME/homelab" "$HOME/workspace"
|
||||
|
||||
# 确保 tmux 会话 agy 存在并在其中默认打开 zsh (可直接运行 agy)
|
||||
# 确保 tmux 会话 agy 存在并在其中默认恢复最近一次会话 (agy -c)
|
||||
if ! /opt/homebrew/bin/tmux has-session -t agy 2>/dev/null; then
|
||||
/opt/homebrew/bin/tmux new-session -d -s agy -c "$HOME/workspace"
|
||||
/opt/homebrew/bin/tmux send-keys -t agy "agy" C-m
|
||||
/opt/homebrew/bin/tmux new-session -d -s agy -c "$HOME/homelab"
|
||||
/opt/homebrew/bin/tmux send-keys -t agy "agy -c" C-m
|
||||
fi
|
||||
|
||||
exec /opt/homebrew/bin/ttyd \
|
||||
@@ -22,4 +22,4 @@ exec /opt/homebrew/bin/ttyd \
|
||||
-p 7681 \
|
||||
-t fontSize=15 \
|
||||
-t 'titleFixed=Mac mini (M6) - AGY 云端工作台' \
|
||||
/opt/homebrew/bin/tmux new-session -A -s agy -c "$HOME/workspace"
|
||||
/opt/homebrew/bin/tmux new-session -A -s agy -c "$HOME/homelab"
|
||||
Reference in new issue
Block a user