## 事象 [[Git]]リポジトリであるかにかかわらず、全体的にコマンド実行からプロンプトが表示されるまでの速度が遅くなった。以下のIssueと同様。 <div class="link-card"> <div class="link-card-header"> <img src="https://github.githubassets.com/favicons/favicon.svg" class="link-card-site-icon"/> <span class="link-card-site-name">GitHub</span> </div> <div class="link-card-body"> <div class="link-card-content"> <div> <p class="link-card-title">OhMyPosh is super slow after migration from PowerShell module · Issue #2265 · JanDeDobbeleer/oh-my-posh</p> </div> <div class="link-card-description"> Code of Conduct I agree to follow this project&#39;s Code of Conduct What happened? Hi, After migrat... </div> </div> <img src="https://opengraph.githubassets.com/71012c54ed7fd7ce9917ccfcfeb9ba1f34a06f9317374289cfc1a1f5465b529a/JanDeDobbeleer/oh-my-posh/issues/2265" class="link-card-image" /> </div> <a href="https://github.com/JanDeDobbeleer/oh-my-posh/issues/2265"></a> </div> ## 原因 [[Windows Defender]]が[[oh-my-posh]]の実行を妨げているから。 > @mwasowski yup, looking at that oh-my-posh only takes 29ms, it's going to be either Defender/virus scanner which blocks the execution (so add an exclusion) or posh-git which is set to true and takes a bit of time before printing the shell. > > https://github.com/JanDeDobbeleer/oh-my-posh/issues/2265#issuecomment-1126181729 ## 解決方法 [[Windows Defenderで除外設定]]を追加する。 > @JanDeDobbeleer Ok, I added oh-my-posh.exe to Virus & threat protection exclusions and it works as before. Thanks for the suggestion. I think it would make sense to add this to the migration FAQ in the docs. > > https://github.com/JanDeDobbeleer/oh-my-posh/issues/2265#issuecomment-1126722936 除外するプロセスを追加。 ![[Pasted image 20220717163232.png]] ![[Pasted image 20220717163309.png]]