Sync PowerShell profile with OneDrive

If you like me uses PowerShell, if not every hour but at least every day. You end up tweaking the PowerShell profile, making your own aliases, functions and so on.

Now that is awesome, but wouldn’t it be nice to have it sync’d between all your devices?
I think so, so let’s put it in OneDrive 🙂

I hope this code is all self-explaining, just put it in your profile (Microsoft.Powershell_profile.ps1)

Although I don’t put my functions directly in the profile. I have them in a separate module.
And since I never remember witch functions I have, I’ve put this in my profile.

Hope you find this useful! 🙂

Keep on script’n

Andreas

Leave a Reply

Your email address will not be published. Required fields are marked *