profile.ps1
Latest update:
I've heard that Windows has a mockery of /etc/profile.
PS> ls -r -pa $PSHOME `*.ps1 -n
Examples\profile.ps1
Modules\Microsoft.PowerShell.ODataUtils\Microsoft.PowerShell.ODataAdapter.ps1
Modules\Microsoft.PowerShell.ODataUtils\Microsoft.PowerShell.ODataUtilsHelper.ps1
Modules\Microsoft.PowerShell.ODataUtils\Microsoft.PowerShell.ODataV4Adapter.ps1
So it doesn't by default. Alright then. But what about an exemplar of
profile.ps1 in the mysterious Examples
dir? I bet it contains some
invaluable hints & tricks!
PS> r | select -f 1 | % { cat $PSHOME/$_ }
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# THIS SAMPLE CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
# WHETHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
# IF THIS CODE AND INFORMATION IS MODIFIED, THE ENTIRE RISK OF USE OR RESULTS IN
# CONNECTION WITH THE USE OF THIS CODE AND INFORMATION REMAINS WITH THE USER.
Well, thanks a million, I guess.
Tags: ойті
Authors: ag