I'm trying to setup shortcuts (command aliases) in Windows 11 terminal.
When I try to run the command:
echo $profile
It gives me the path:
C:\Users\ashut\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
Now if I try to save aliases to this file, it says file is not digitally signed.
I need to set profile path to:
C:\Users\ashut\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
I tried to create new profile but couldn't found an option to set the path. It allowed only startup path to set.
I my previous computer, profile path was not pointing to OneDrive. How to fix this?