Import-Module posh-git
Import-Module oh-my-posh
Import-Module Terminal-Icons
Set-PoshPrompt ~/OneDrive/Apps/oh-my-posh/aritraroy.omp.json
function Set-Title {
<#
.Description
Set-Title sets the window/tab title, such as for Windows Terminal.
#>
param(
[Parameter(Mandatory = $true)]
[string]
$title
)
$Host.UI.RawUI.WindowTitle = $title
}
function Set-Title-Folder {
<#
.Description
Set-Title-Folder sets the window/tab title, such as for Windows Terminal, based on the current folder.
#>
$Host.UI.RawUI.WindowTitle = Split-Path -Path (Get-Location) -Leaf
}