Skip to content

Commit a99b215

Browse files
author
Yuriy Bezsonov
committed
feat(java-on-aws-infra): streamline workshop setup and customize shell prompt
1 parent 048cace commit a99b215

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

infra/scripts/setup/unicorn-store-spring.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ fi
5858
cp -r ~/java-on-aws/apps/unicorn-store-spring ~/environment/unicorn-store-spring
5959
log_success "Copied unicorn-store-spring to ~/environment"
6060

61+
# Remove test folder (not needed for workshop)
62+
if [ -d ~/environment/unicorn-store-spring/src/test ]; then
63+
log_info "Removing src/test folder..."
64+
rm -rf ~/environment/unicorn-store-spring/src/test
65+
log_success "src/test folder removed"
66+
fi
67+
6168
# Initialize git repository in unicorn-store-spring
6269
log_info "Initializing git repository in unicorn-store-spring..."
6370
cd ~/environment/unicorn-store-spring

infra/scripts/templates/java-on-aws-immersion-day.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,19 @@ else
4646
exit 1
4747
fi
4848

49+
# Phase 5: Simplify p10k prompt (remove vcs, kubecontext, aws)
50+
log_info "Phase 5: Simplifying p10k prompt..."
51+
P10K_FILE="$HOME/.p10k.zsh"
52+
if [[ -f "$P10K_FILE" ]]; then
53+
# Remove vcs from left prompt
54+
sed -i "s/POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir vcs newline prompt_char)/POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir newline prompt_char)/" "$P10K_FILE"
55+
# Remove kubecontext and aws from right prompt
56+
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"
57+
log_success "p10k prompt simplified"
58+
else
59+
log_warning "p10k.zsh not found, skipping prompt customization"
60+
fi
61+
4962
log_success "Java-on-AWS-Immersion-Day workshop post-deploy setup completed successfully!"
5063

5164
# Emit for bootstrap summary

0 commit comments

Comments
 (0)