feat: zshrc sets PI_CACHE_RETENTION and forces Wayland only on a Wayland session
This commit is contained in:
1 parent
3c7468e113
commit
f70d4fe5fc
1 file changed
+5
-1
+5
-1
@@ -41,7 +41,11 @@ export ZSH_AI_GEMINI_MODEL="gemini-2.5-flash"
|
|||||||
# Endpoint, not a credential — the matching key comes from secrets.zsh.
|
# Endpoint, not a credential — the matching key comes from secrets.zsh.
|
||||||
export ZAI_BASE_URL="https://api.z.ai/api/anthropic"
|
export ZAI_BASE_URL="https://api.z.ai/api/anthropic"
|
||||||
|
|
||||||
(( _ubuntu )) && {
|
# Pi keeps Anthropic prompt caches for 1 hour, not 5 minutes: long agent runs
|
||||||
|
# often wait longer than 5 minutes between turns.
|
||||||
|
export PI_CACHE_RETENTION=long
|
||||||
|
|
||||||
|
(( _ubuntu )) && [[ -n $WAYLAND_DISPLAY ]] && {
|
||||||
export GDK_BACKEND=wayland
|
export GDK_BACKEND=wayland
|
||||||
export QT_QPA_PLATFORM=wayland
|
export QT_QPA_PLATFORM=wayland
|
||||||
export CLUTTER_BACKEND=wayland
|
export CLUTTER_BACKEND=wayland
|
||||||
|
|||||||
Reference in new issue
Block a user