vors / ZLocation

ZLocation is the new Jump-Location
MIT License
567 stars 29 forks source link

Invoke-ZLocation doesn't work with oh-my-posh + posh-git + ZLocation #122

Closed glenncarr closed 3 years ago

glenncarr commented 3 years ago

Invoke-ZLocation doesn't save paths when Set-PoshPrompt is included in my profile:

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.

What am I missing or not understanding?

Thanks.

glenncarr commented 3 years ago

Resolved... I had an extra Import-Module ZLocation in my $PROFILE.AllUsersCurrentHost. Removing that fixed it.

Sorry about that.

MisinformedDNA commented 3 years ago

The order of commands was my problem. Thanks.