Compare commits

..
2 Commits
Author SHA1 Message Date
yves-sbb 4969097d78 Update home dir sync log 2026-09-28 20:01:31 +02:00
yves-sbb c8d9fd013b fix: Suppress console output during zsh initialization to avoid P10K instant prompt warnings
- Add output redirection (&>/dev/null) when sourcing helper functions
- Wrap export -f statements to suppress stderr during loading
- This prevents P10K from detecting console output during initialization
2026-09-28 20:00:37 +02:00
3 changed files with 34 additions and 2 deletions

No files matched your search

+28
View File
@@ -217,3 +217,31 @@
[OK] Status-Zusammenfassung: [OK] Status-Zusammenfassung:
[2026-09-28 19:57:29] ═══════════════════════════════════════════════════════════ [2026-09-28 19:57:29] ═══════════════════════════════════════════════════════════
[OK] Abgeschlossen [OK] Abgeschlossen
[2026-09-28 20:00:08] ═══════════════════════════════════════════════════════════
[2026-09-28 20:00:08] Modus: push
[2026-09-28 20:00:08] DRY-RUN: Keine Änderungen werden vorgenommen
[2026-09-28 20:00:08] ═══════════════════════════════════════════════════════════
[2026-09-28 20:00:08] Push: Synchronisiere Repo-Dateien ins Home-Dir...
[WARN] → update: .bash_oc_smart.sh (Repo → Home) [lokale Änderung wird überschrieben]
[WARN] → update: .bash_oc_smart_aliases.sh (Repo → Home) [lokale Änderung wird überschrieben]
[OK] Push abgeschlossen: 0 kopiert, 0 Backups, 0 ausgelassen
[2026-09-28 20:00:09] ═══════════════════════════════════════════════════════════
[OK] DRY-RUN abgeschlossen (keine Änderungen)
[2026-09-28 20:00:12] ═══════════════════════════════════════════════════════════
[2026-09-28 20:00:12] Modus: push
[2026-09-28 20:00:12] ═══════════════════════════════════════════════════════════
[2026-09-28 20:00:12] Push: Synchronisiere Repo-Dateien ins Home-Dir...
[WARN] → update: .bash_oc_smart.sh (Repo → Home) [lokale Änderung wird überschrieben]
[2026-09-28 20:00:12] Backup erstellt: .bash_oc_smart.sh (vor Push) → /Users/u241100/mac-home/.sync-backups/.bash_oc_smart.sh.20260928_200012.backup
[WARN] → update: .bash_oc_smart_aliases.sh (Repo → Home) [lokale Änderung wird überschrieben]
[2026-09-28 20:00:12] Backup erstellt: .bash_oc_smart_aliases.sh (vor Push) → /Users/u241100/mac-home/.sync-backups/.bash_oc_smart_aliases.sh.20260928_200012.backup
[OK] Push abgeschlossen: 2 kopiert, 2 Backups, 0 ausgelassen
[2026-09-28 20:00:12] ═══════════════════════════════════════════════════════════
[OK] Abgeschlossen
[2026-09-28 20:01:20] ═══════════════════════════════════════════════════════════
[2026-09-28 20:01:20] Modus: status
[2026-09-28 20:01:20] ═══════════════════════════════════════════════════════════
[2026-09-28 20:01:20] Status: Vergleiche Repo mit Home-Dir...
[OK] Status-Zusammenfassung:
[2026-09-28 20:01:20] ═══════════════════════════════════════════════════════════
[OK] Abgeschlossen
+4
View File
@@ -271,6 +271,9 @@ oc_logout() {
echo -e "${GREEN}✓ Logged out${NC}" echo -e "${GREEN}✓ Logged out${NC}"
} }
# Export functions for use in subshells (mainly for bash compatibility)
# Suppress output to avoid console noise during zsh initialization
{
export -f is_oc_logged_in export -f is_oc_logged_in
export -f is_oc_token_valid export -f is_oc_token_valid
export -f get_token_expiry_info export -f get_token_expiry_info
@@ -280,4 +283,5 @@ export -f _oc_verify_project
export -f oc_status export -f oc_status
export -f oc_contexts export -f oc_contexts
export -f oc_logout export -f oc_logout
} 2>/dev/null
+2 -2
View File
@@ -8,8 +8,8 @@
# Source this after .bash_aliases to override the old context-only aliases # Source this after .bash_aliases to override the old context-only aliases
# ============================================================================ # ============================================================================
# First, source the helper functions # First, source the helper functions (suppress all console output during init)
source ~/.bash_oc_smart.sh source ~/.bash_oc_smart.sh &>/dev/null
# ============================================================================ # ============================================================================
# AWS Shared Clusters - Smart Switch Aliases # AWS Shared Clusters - Smart Switch Aliases