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

If user has his own powershell profile, use it #633

Closed

Conversation

pavelkouril
Copy link

If user has his own $PROFILE, cmder should launch it after loading all its settings.

This allows user to set default directory/create new functions or aliases/etc. quite easily and have them available in both cmder and traditional powershell window.

@jankatins
Copy link
Contributor

Is $PROFILE a standard way to extend a powershell console environment ("traditional powershell window")?

@MartiUK
Copy link
Member

MartiUK commented Oct 13, 2015

Could you re-pull this into development please.

@MartiUK MartiUK closed this Oct 13, 2015
@Jackbennett
Copy link
Contributor

There's actually 4 profiles to be aware of as my personal extensions reside within currentProfileAllHosts

$profile | fl -Force

Hosts being what program is playing host to the powershell session. E.g.

Run powershell.exe -noExit -command "Get-host"
Run Get-host from within the powershell ISE you'll get a different name. And can have a different profile.

So this PR just needs checking against what files are called in which order depending on what the user has present.

@pavelkouril
Copy link
Author

@MartiUK Hmm, so should I open different PR with another branch?

@Jackbennett So, what exactly should be changed? I'm sorry but my understanding of PS is kinda limited (I use it for basic scripting, mostly). If you either could explain what should be done differently (or prepare a more correct PR), it would be wonderful. :)

@MartiUK
Copy link
Member

MartiUK commented Oct 14, 2015

@pavelkouril Yes, please.

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

Successfully merging this pull request may close these issues.

4 participants