Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oh-my-posh overridden by prompt function #13

Open
ohuu opened this issue Apr 28, 2022 · 2 comments
Open

oh-my-posh overridden by prompt function #13

ohuu opened this issue Apr 28, 2022 · 2 comments

Comments

@ohuu
Copy link

ohuu commented Apr 28, 2022

Is there a recommended way of making this work alongside oh-my-posh? Adding the prompt function to the end of my profile breaks oh-my-posh

@rajivharris
Copy link
Owner

lmc

@JanDeDobbeleer
Copy link

@ohuu yes:

Add this after initializing oh-my-posh in your $PROFILE:

function Set-EnvVar {
    Set-PsEnv
}
New-Alias -Name 'Set-PoshContext' -Value 'Set-EnvVar' -Scope Global -Force

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants