Windows Powershell ISE snippets
List all files within a given directory, useful for copy pasting a list of files.
Get-ChildItem -Path <<path>> -Name
Output:
List all files (recursive)
Get-ChildItem -Path <<path>> -Name -Recurse
Output:
Open a file explorer at given directory
explorer <<path>>
Git repo status
clear $line_sep = "*************************************" # brenpy echo $line_sep echo "brenpy" echo $line_sep echo "" cd D:\Repos\brenpy git status echo ""
Output:
Btw code highlighting was done using the very useful http://hilite.me/
Comments
Post a Comment