From 8fb076931d30c88e99d52870df946b29b32f78d8 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Sun, 21 Jul 2024 12:59:33 -0400 Subject: [PATCH] Don't tee *everything* It gets real sloppy when vim or similarly noisy outputs are captured --- fake_home/.zshrc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/fake_home/.zshrc b/fake_home/.zshrc index 7336871..0b25377 100644 --- a/fake_home/.zshrc +++ b/fake_home/.zshrc @@ -233,7 +233,7 @@ function lockfor { lock-wait "$file" "$seconds" touch "$file" - $3 $4 $5 $6 $7 $8 $9 $10 | tee -a "$file" + $3 $4 $5 $6 $7 $8 $9 $10 rm "$file" } @@ -257,9 +257,9 @@ function _pushdot { git push -u origin main fi fi - push-extensions - sync-history - push-dconf + push-extensions | tee -a "$SYNC_LOCK_FILE" + sync-history | tee -a "$SYNC_LOCK_FILE" + push-dconf | tee -a "$SYNC_LOCK_FILE" cd - return $res } @@ -297,11 +297,11 @@ function _getdot { fi dot-lock-wait cd "$DOT_DIR" || return 1 - git pull && ./copy.sh + git pull && ./copy.sh | tee -a "$SYNC_LOCK_FILE" - sync-history - load-extensions - [[ "$1" != "--skip-dconf" ]] && sync-dconf + sync-history | tee -a "$SYNC_LOCK_FILE" + load-extensions | tee -a "$SYNC_LOCK_FILE" + [[ "$1" != "--skip-dconf" ]] && sync-dconf | tee -a "$SYNC_LOCK_FILE" cd - > /dev/null }