diff --git a/conf/Microsoft.PowerShell_profile.ps1 b/conf/Microsoft.PowerShell_profile.ps1 index 8d7410a..c69baa5 100644 --- a/conf/Microsoft.PowerShell_profile.ps1 +++ b/conf/Microsoft.PowerShell_profile.ps1 @@ -3,3 +3,7 @@ Set-Alias ps Get-Process Set-Alias kill Stop-Process +function uptime() { + ((Get-Date) - (gcim Win32_OperatingSystem).LastBootUpTime) +} +