Skip to main content

Posts

Showing posts from September, 2017

Useful Powershell stuff

Short:
ii = Invoke-Item - for files, opens them using windows default program
vim = Opens with vim (custom alias)
csi = C# interactive (custom alias)


& { blah } 1 > $null    - suppress standard output from executing "blah". More info
$var = & Do-Stuff *>&1  - redirect all output to standard output and store that in $var

get-content .\somefile -Wait  - tail-like behaviour, displays additions to the file