Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am rickykaare on github.
  • I am rickykaare (https://keybase.io/rickykaare) on keybase.
  • I have a public key ASBlvrPXY72m48T1AQEw8GQLHI8BVtuaA6cBU7SID9rwuQo

To claim this, I am signing this object:

@rickykaare
rickykaare / time.ps1
Created April 5, 2022 08:21
Bash time command for PowerShell
function time {
$Command = "$args"
if ($Command -eq "") {
Write-Host "Usage: time <command>"
return;
}
Measure-Command {
Invoke-Expression $Command 2>&1 | out-default
@rickykaare
rickykaare / watch.ps1
Created April 5, 2022 08:22
Bash watch command for PowerShell
function watch {
$Command = "$args"
$Seconds = 2
if ($args.Length -gt 2 -and $args[0] -eq "-n") {
$Seconds = [int]$args[1]
$Command = $args[2..$args.Length]
}
if ($Command -eq "") {