Closed glenncarr closed 3 years ago
Invoke-ZLocation doesn't save paths when Set-PoshPrompt is included in my profile:
Invoke-ZLocation
Set-PoshPrompt
My pwsh 7.1.3 $PROFILE:
Set-PSReadLineOption -Colors @{ String="Cyan"; Parameter="Green"; Comment="Magenta" } Set-PSReadLineOption -HistoryNoDuplicates Set-PSReadlineKeyHandler -Key ctrl+d -Function ViExit Import-Module posh-git $env:POSH_GIT_ENABLED = $true Set-PoshPrompt -Theme '~\Documents\.oh-my-posh.omp.json' Import-Module ZLocation
Reading the Note I was hoping simply putting Import-Module ZLocation would resolve it. Removing Set-PoshPrompt allows Invoke-ZLocation to work correctly.
Import-Module ZLocation
What am I missing or not understanding?
Thanks.
Resolved... I had an extra Import-Module ZLocation in my $PROFILE.AllUsersCurrentHost. Removing that fixed it.
$PROFILE.AllUsersCurrentHost
Sorry about that.
The order of commands was my problem. Thanks.
Invoke-ZLocation
doesn't save paths whenSet-PoshPrompt
is included in my profile:My pwsh 7.1.3 $PROFILE:
Reading the Note I was hoping simply putting
Import-Module ZLocation
would resolve it. RemovingSet-PoshPrompt
allowsInvoke-ZLocation
to work correctly.What am I missing or not understanding?
Thanks.