Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Windows Powershell

powershell

create a new file with new-item

new-item -name 'foobar.txt' -itemtype file -path . -value 'foobarpop'

create a new directory with new-item

new-item -name 'foobar' -itemtype directory -path .

moving items with move-item

move-item -path ~/.gitconfig -destination .

Opening files

vscode

code ./

Powershell Profile (Bash Profile Equivelant)

~\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1

Redirecting Output to File

git diff develop.. > diff.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.