.zshrc: warn if not in main channel

This commit is contained in:
xiongdian.me 2023-08-02 00:00:10 +08:00
parent dbba66ccd0
commit 41f910e31d

View File

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