From 84f4548dcb811c308c9e7dd3e818c0bc8f51f873 Mon Sep 17 00:00:00 2001 From: kaitranntt Date: Sat, 1 Nov 2025 18:51:24 -0400 Subject: [PATCH] fix(ccs): resolve default profile shift error when no args provided - add conditional check before shift command - prevent failure when calling 'ccs' without arguments - named profiles (ccs son, ccs glm) still work correctly --- ccs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ccs b/ccs index 64848072..a653274b 100755 --- a/ccs +++ b/ccs @@ -65,8 +65,10 @@ if [[ ! -f "$SETTINGS_PATH" ]]; then exit 1 fi -# Shift profile arg, pass rest to claude -shift +# Shift profile arg if it was provided, pass rest to claude +if [[ $# -gt 0 ]]; then + shift +fi # Execute claude with settings exec claude --settings "$SETTINGS_PATH" "$@"