Useful, simple, practical powershell commands
alt, f, s, a (while at the directory in File Explorer)
ni myfile
rm myfile
ii .
clear
get-childitem env:
$env:MYVARIABLENAME
get-content .\myfile | measure-object -line
get-content .\myfile | measure-object -word
get-content .\myfile | measure-object -character
This sets up gs
as git status
$ New-Item -Type file -Path $PROFILE -Force
$ code $PROFILE
# in vscode
function Get-GitStatus { & git status $args }
New-Alias -Name gs -Value Get-GitStatus
get-alias myalias
. $profile
# or whatever profile you're trying to invoke
. $profile.AllUsersAllHosts