From 58a3512c28d1930ce9b3d77cc8b16991a3d75aac Mon Sep 17 00:00:00 2001 From: Brad Anderson Date: Tue, 14 Jul 2026 21:11:35 -0700 Subject: [PATCH] Disable claude-code systemd limits --- config/zshrc | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/config/zshrc b/config/zshrc index 4acc14a..8c038c2 100755 --- a/config/zshrc +++ b/config/zshrc @@ -186,18 +186,17 @@ fi # Tool options export SHELLCHECK_OPTS="-e SC2029 -e SC2155" -# Limit claude-code: cap CPU/memory/process count so a runaway subprocess -# (or its children, e.g. from the Bash tool) can't overheat the laptop. +# Limit claude-code: cap CPU/memory/process count # Adjust the -p values if these limits are ever too tight. -if program_installed claude && program_installed systemd-run; then - claude() { - systemd-run --user --scope --quiet \ - -p CPUQuota=50% \ - -p MemoryMax=6G \ - -p TasksMax=512 \ - -- command claude "$@" - } -fi +# if program_installed claude && program_installed systemd-run; then +# claude() { +# systemd-run --user --scope --quiet \ +# -p CPUQuota=50% \ +# -p MemoryMax=6G \ +# -p TasksMax=512 \ +# -- command claude "$@" +# } +# fi # Syntax highlighting if [ -f /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]; then