Update NewProfile.ps1
Removed redundant display (Core) in the console as it's displayed in the Title
This commit is contained in:
@@ -8,7 +8,6 @@
|
|||||||
# 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
|
||||||
@@ -21,10 +20,6 @@
|
|||||||
|
|
||||||
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