Dup Ver Goto 📝

Profile

PT2/lang/powershell does not exist
To
33 lines, 82 words, 772 chars Page 'Profile' does not exist.

See microsoft.com

Some help setting up a powershell profile from Chatgpt:

echo $PROFILE
# C:\Users\<you>\Documents\PowerShell\Microsoft.PowerShell_profile.ps1

# To create
if (!(Test-Path -Path $PROFILE)) { New-Item -ItemType File -Path $PROFILE -Force }

# Then edit
notepad $PROFILE
# or whatever editor you use.

My clipboard shorthands

# Paste clipboard contents to standard output
function pp {
    Get-Clipboard
}

# Copy standard input to clipboard
function pc {
    param(
        [Parameter(ValueFromPipeline = $true)]
        $InputObject
    )
    process {
        $InputObject | Set-Clipboard
    }
}