get-claudia 1.10.2 → 1.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -22,6 +22,14 @@ BIN_DIR="$CLAUDIA_DIR/bin"
|
|
|
22
22
|
# Upgrade mode: skip config generation if config exists
|
|
23
23
|
IS_UPGRADE="${CLAUDIA_GATEWAY_UPGRADE:-0}"
|
|
24
24
|
|
|
25
|
+
# Detect shell rc file (used for PATH and token persistence)
|
|
26
|
+
SHELL_RC=""
|
|
27
|
+
if [ -n "$ZSH_VERSION" ] || [ "$(basename "$SHELL")" = "zsh" ]; then
|
|
28
|
+
SHELL_RC="$HOME/.zshrc"
|
|
29
|
+
elif [ -n "$BASH_VERSION" ] || [ "$(basename "$SHELL")" = "bash" ]; then
|
|
30
|
+
SHELL_RC="$HOME/.bashrc"
|
|
31
|
+
fi
|
|
32
|
+
|
|
25
33
|
# Clear screen and show banner
|
|
26
34
|
clear
|
|
27
35
|
|
|
@@ -244,14 +252,6 @@ PATH_ADDED=0
|
|
|
244
252
|
if [[ ":$PATH:" != *":$BIN_DIR:"* ]]; then
|
|
245
253
|
PATH_LINE='export PATH="$HOME/.claudia/bin:$PATH"'
|
|
246
254
|
|
|
247
|
-
# Detect shell rc file
|
|
248
|
-
SHELL_RC=""
|
|
249
|
-
if [ -n "$ZSH_VERSION" ] || [ "$(basename "$SHELL")" = "zsh" ]; then
|
|
250
|
-
SHELL_RC="$HOME/.zshrc"
|
|
251
|
-
elif [ -n "$BASH_VERSION" ] || [ "$(basename "$SHELL")" = "bash" ]; then
|
|
252
|
-
SHELL_RC="$HOME/.bashrc"
|
|
253
|
-
fi
|
|
254
|
-
|
|
255
255
|
if [ -n "$SHELL_RC" ]; then
|
|
256
256
|
# Check if already in rc file (even if not in current PATH)
|
|
257
257
|
if [ -f "$SHELL_RC" ] && grep -q '\.claudia/bin' "$SHELL_RC" 2>/dev/null; then
|