lukesampson / pshazz

Give your powershell some pizazz.
The Unlicense
581 stars 40 forks source link

Time variable #106

Closed robsonsobral closed 4 years ago

robsonsobral commented 4 years ago

Hi! Thank you for saving me from type the hostnames on ssh_config completely.

Is it possible to add time to the cursor? Something like 16:16. I couldn't find a variable to do it.

Thank you!

chawyehsu commented 4 years ago

You can use PowerShell cmdlet to get time and add it to prompt like this:

    "prompt": [
        [ "darkcyan",   "", " $(Get-Date -Format 'HH:mm:ss')" ]
    ]
robsonsobral commented 4 years ago

Thank you so much, @h404bi !