Secrets can be everywhere, even in your shell history commands.
I created a small tool that detects and clean those commands from your history. You can even stash your history commands before you share your screen and pop the history when you finish.