shilangyu / scoop-search

Fast `scoop search` drop-in replacement 🚀
MIT License
289 stars 10 forks source link

When the powershell window is closed, the hook will become invalid. #35

Closed ihuanx closed 1 year ago

ihuanx commented 1 year ago

When the powershell window is closed, the hook will become invalid. You need to reset the hook the next time you start powershell. This is too troublesome.

shilangyu commented 1 year ago

I see you closed the issue, did you resolve it?

ihuanx commented 1 year ago

echo "Invoke-Expression (&scoop-search --hook)" > "C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1"

My English is not good. So I didn’t understand the readme at the beginning. I solved it through this method now.

thanks ~