From 83695d48fbdbea6d91379efd86308b63946e355e Mon Sep 17 00:00:00 2001 From: Dict Xiong Date: Thu, 27 Oct 2022 01:16:45 +0800 Subject: [PATCH] fix update & docker notify (#16) * update.sh improve * docker notify --- .update.sh | 5 ++--- .zshrc2 | 9 ++++++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.update.sh b/.update.sh index 5ff9056..ad98d33 100644 --- a/.update.sh +++ b/.update.sh @@ -26,7 +26,6 @@ if [[ "$(git rev-parse HEAD)" == "$dfs_commit" ]]; then else fmt_info "checking out to commit $dfs_commit ..." git -c advice.detachedHead=false checkout $dfs_commit - cp ./.update.sh ./update.sh - chmod +x ./update.sh - post_log "INFO" "$THIS_FILE" "checked out to commit $dfs_commit" + post_log "INFO" "$THIS_FILE" "will check out to commit $dfs_commit" + cp ./.update.sh ./update.sh && chmod +x ./update.sh && exit fi diff --git a/.zshrc2 b/.zshrc2 index 084eddd..2713e34 100644 --- a/.zshrc2 +++ b/.zshrc2 @@ -63,7 +63,14 @@ do fi done # select theme -antigen theme ${ZSH_THEME:-ys} +TMP_THEME=ys +if [[ -e /.dockerenv ]]; then + TMP_THEME=blinks + echo "===========================" + echo "This is in docker container" + echo "===========================" +fi +antigen theme ${ZSH_THEME:-$TMP_THEME} # apply antigen apply # end of antigen config