Closed mattcargile closed 3 years ago
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.
Code of Conduct
What would you like to see changed/added?
Would it be reasonable to prefix the
$value
and/or$config
variable with something like$omp_
or even do aRemove-Variable value
after it is used?It clutters my
Get-Variable
output a tiny bit. And I worry I might step on this variable in the future as it is somewhat general.Here is the code from my init which I assume the
$value
comes from.https://github.com/JanDeDobbeleer/oh-my-posh/blob/df52ccdb6a5980f22cd39babe7a1bf7b93dc1b7b/src/init/omp.ps1#L16-L23
Maybe
$config
could be renamed to make it more unique in the context ofoh-my-posh.exe
?https://github.com/JanDeDobbeleer/oh-my-posh/blob/df52ccdb6a5980f22cd39babe7a1bf7b93dc1b7b/src/init/omp.ps1#L33
This is my
--print-init
below.I generated it with the output from the below, excluding the
Invoke-Expression
call on both layers of code.I first executed the below.
oh-my-posh --init --shell pwsh --config "$env:OneDrive\Documents\oh-my-posh\themes\jandedobbeleer.omp.json"
Then I executed the output of the below.
(@(&"C:/Users/user/AppData/Local/Programs/oh-my-posh/bin/oh-my-posh.exe" --print-init --shell=pwsh --config="C:\Users\user\OneDrive\Documents\oh-my-posh\themes\jandedobbeleer.omp.json") -join "`n")