fix update & docker notify (#16)

* update.sh improve
* docker notify
This commit is contained in:
Dict Xiong 2022-10-27 01:16:45 +08:00 committed by GitHub
parent 5bd6d9f822
commit 83695d48fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions

View File

@ -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

View File

@ -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