From 41f910e31d4e52812bd98579a1b95a0184b68c01 Mon Sep 17 00:00:00 2001 From: "xiongdian.me" Date: Wed, 2 Aug 2023 00:00:10 +0800 Subject: [PATCH] .zshrc: warn if not in main channel --- .zshrc2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.zshrc2 b/.zshrc2 index 443a7bc..9d8df17 100644 --- a/.zshrc2 +++ b/.zshrc2 @@ -176,6 +176,11 @@ dfs() esac } +# motd +if [[ "$DFS_INITED" != "1" && -n "$DFS_UPDATE_CHANNEL" && "$DFS_UPDATE_CHANNEL" != "main" ]]; then + echo dotfiles not in the main channel. use with caution. +fi + # clean unset i export DFS_INITED=1