Cleaned up code boxes

This commit is contained in:
schmurky 2020-08-11 15:30:29 +08:00
parent 1787bbb84b
commit af8b74e8a1

View File

@ -31,6 +31,9 @@ If you can reproduce a problem, increase the logging level, run the system for s
```bash ```bash
mdatp --log-level verbose mdatp --log-level verbose
```
```Output
Creating connection to daemon Creating connection to daemon
Connection established Connection established
Operation succeeded Operation succeeded
@ -42,6 +45,8 @@ If you can reproduce a problem, increase the logging level, run the system for s
```bash ```bash
sudo mdatp --diagnostic --create sudo mdatp --diagnostic --create
```
```Output
Creating connection to daemon Creating connection to daemon
Connection established Connection established
``` ```
@ -50,6 +55,8 @@ If you can reproduce a problem, increase the logging level, run the system for s
```bash ```bash
mdatp --log-level info mdatp --log-level info
```
```Output
Creating connection to daemon Creating connection to daemon
Connection established Connection established
Operation succeeded 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: To enable autocompletion in `Bash`, run the following command and restart the Terminal session:
```bash ```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`: To enable autocompletion in `zsh`:
@ -113,20 +120,21 @@ To enable autocompletion in `zsh`:
- Check whether autocompletion is enabled on your device: - Check whether autocompletion is enabled on your device:
```zsh ```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: - If the above command does not produce any output, you can enable autocompletion using the following command:
```zsh ```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: - Run the following command to enable autocompletion for Microsoft Defender ATP for Mac and restart the Terminal session:
```zsh ```zsh
sudo mkdir -p /usr/local/share/zsh/site-functions 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 sudo ln -svf "/Applications/Microsoft Defender ATP.app/Contents/Resources/Tools/mdatp_completion.zsh" /usr/local/share/zsh/site-functions/_mdatp
``` ```