December 19, 2016 at 12:12 pm
Is there a way to set up Visual Studio 2013 so that my profile.ps1 runs on startup, or do I just have to load the SQLServer modules as needed in each script?
December 20, 2016 at 9:48 am
Doesn't appear to be working:
I've copied my profile.ps1 to
$Home\Documents\WindowsPowerShell\Poshtools_profile.ps1
and
$Home\Documents\WindowsPowerShell\profile.ps1
but in neither case is it being loaded when I start Visual Studio.
Also tried
$Home\My Documents\... to no avail.
December 20, 2016 at 2:41 pm
schleep (12/20/2016)
Doesn't appear to be working:I've copied my profile.ps1 to
$Home\Documents\WindowsPowerShell\Poshtools_profile.ps1
and
$Home\Documents\WindowsPowerShell\profile.ps1
but in neither case is it being loaded when I start Visual Studio.
Also tried
$Home\My Documents\... to no avail.
Try opening powershell and then at the prompt, just type: $Profile
hit enter and it should show you the path to the current Profile.ps1 file.
Sue
Sue
December 21, 2016 at 5:07 am
And, Presto! Copying Poshtools_Profile.ps1 files to there did the trick.
Thanks Sue!
Edit: The $Home threw me off since it points to somewhere else entirely.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy