From af8b74e8a1fa6ac8edff35325d217337e2d5e4d8 Mon Sep 17 00:00:00 2001 From: schmurky Date: Tue, 11 Aug 2020 15:30:29 +0800 Subject: [PATCH] Cleaned up code boxes --- .../microsoft-defender-atp/mac-resources.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/windows/security/threat-protection/microsoft-defender-atp/mac-resources.md b/windows/security/threat-protection/microsoft-defender-atp/mac-resources.md index eb1a1339c6..ef40ef4868 100644 --- a/windows/security/threat-protection/microsoft-defender-atp/mac-resources.md +++ b/windows/security/threat-protection/microsoft-defender-atp/mac-resources.md @@ -31,6 +31,9 @@ If you can reproduce a problem, increase the logging level, run the system for s ```bash mdatp --log-level verbose + ``` + + ```Output Creating connection to daemon Connection established Operation succeeded @@ -42,6 +45,8 @@ If you can reproduce a problem, increase the logging level, run the system for s ```bash sudo mdatp --diagnostic --create + ``` + ```Output Creating connection to daemon Connection established ``` @@ -50,6 +55,8 @@ If you can reproduce a problem, increase the logging level, run the system for s ```bash mdatp --log-level info + ``` + ```Output Creating connection to daemon Connection established Operation succeeded @@ -105,7 +112,7 @@ Important tasks, such as controlling product settings and triggering on-demand s To enable autocompletion in `Bash`, run the following command and restart the Terminal session: ```bash -$ echo "source /Applications/Microsoft\ Defender\ ATP.app/Contents/Resources/Tools/mdatp_completion.bash" >> ~/.bash_profile +echo "source /Applications/Microsoft\ Defender\ ATP.app/Contents/Resources/Tools/mdatp_completion.bash" >> ~/.bash_profile ``` To enable autocompletion in `zsh`: @@ -113,20 +120,21 @@ To enable autocompletion in `zsh`: - Check whether autocompletion is enabled on your device: ```zsh - $ cat ~/.zshrc | grep autoload + cat ~/.zshrc | grep autoload ``` - If the above command does not produce any output, you can enable autocompletion using the following command: ```zsh - $ echo "autoload -Uz compinit && compinit" >> ~/.zshrc + echo "autoload -Uz compinit && compinit" >> ~/.zshrc ``` - Run the following command to enable autocompletion for Microsoft Defender ATP for Mac and restart the Terminal session: ```zsh sudo mkdir -p /usr/local/share/zsh/site-functions - + ``` + ```zsh sudo ln -svf "/Applications/Microsoft Defender ATP.app/Contents/Resources/Tools/mdatp_completion.zsh" /usr/local/share/zsh/site-functions/_mdatp ```