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

Popular posts from this blog

Umur & North Chinese Leopard reference - Big Cat Sanctuary - High res video

old stone barn - photogrammetry