Skip to content

Commit 21c06a9

Browse files
author
Yuriy Bezsonov
committed
fix(java-on-aws-infra): fix sed command compatibility for cross-platform support
1 parent a44c03f commit 21c06a9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

infra/scripts/templates/java-spring-ai-agents.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ log_info "Phase 2: Simplifying p10k prompt..."
2525
P10K_FILE="$HOME/.p10k.zsh"
2626
if [[ -f "$P10K_FILE" ]]; then
2727
# Remove vcs from left prompt
28-
sed -i '' "s/POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir vcs newline prompt_char)/POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir newline prompt_char)/" "$P10K_FILE"
28+
sed -i "s/POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir vcs newline prompt_char)/POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir newline prompt_char)/" "$P10K_FILE"
2929
# Remove kubecontext and aws from right prompt
30-
sed -i '' "s/POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status command_execution_time background_jobs kubecontext aws newline)/POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status command_execution_time background_jobs newline)/" "$P10K_FILE"
30+
sed -i "s/POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status command_execution_time background_jobs kubecontext aws newline)/POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status command_execution_time background_jobs newline)/" "$P10K_FILE"
3131
log_success "p10k prompt simplified"
3232
else
3333
log_warning "p10k.zsh not found, skipping prompt customization"

0 commit comments

Comments
 (0)