@@ -8,6 +8,7 @@
|
|||||||
# Added PowerShell-Core compatibility
|
# Added PowerShell-Core compatibility
|
||||||
#
|
#
|
||||||
# 1) PS prompt
|
# 1) PS prompt
|
||||||
|
# - detect pwsh-core
|
||||||
# - current (local) time
|
# - current (local) time
|
||||||
# - execution time of the previous command
|
# - execution time of the previous command
|
||||||
# - shortened PWD
|
# - shortened PWD
|
||||||
@@ -20,6 +21,10 @@
|
|||||||
|
|
||||||
function prompt
|
function prompt
|
||||||
{
|
{
|
||||||
|
# Detect PS-Core
|
||||||
|
If ($PSVersionTable.PSEdition -eq 'Core') {
|
||||||
|
Write-Host '(Core) ' -NoNewLine
|
||||||
|
}
|
||||||
# Current time
|
# Current time
|
||||||
$date = (Get-Date).ToString('HH:mm:ss')
|
$date = (Get-Date).ToString('HH:mm:ss')
|
||||||
Write-Host -Object '[' -NoNewLine
|
Write-Host -Object '[' -NoNewLine
|
||||||
|
|||||||
Reference in New Issue
Block a user