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

profile.ps1 doesn't have CMDER_START when duplicating tab in windows 10 #577

Closed
drulia opened this issue Aug 4, 2015 · 7 comments
Closed

Comments

@drulia
Copy link

drulia commented Aug 4, 2015

I have installed windows and cmder, I haven't used this version on a previous windows setup, so cannot say if this is purely windows 10 problem.
Edit: previously I have only used cmd, as powershell wasn't supported the way it is now.

To the problem, when I duplicate current powershell tab, it opens in the default user location. Same happens if I execute cmder /single /. It does however work when I execute cmder /start /, then it open in the location I've passed.

I've added the line Write-Host $Env:CMDER_START in profile.ps1 file just before it checks it and I see that when duplicating tab or creating in the same window a new tab, it doesn't have a CMDER_START and defaults to user profile location.

@kermage
Copy link

kermage commented Aug 15, 2015

Try this. Goto (Settings > Startup > Tasks).
Remove the -new_console parameter in default predefined task {Powershell}.

PowerShell -NoLogo -NoProfile -NoExit -Command "Invoke-Expression '. ''%ConEmuDir%\..\profile.ps1'''"

@drulia
Copy link
Author

drulia commented Aug 15, 2015

This has one change that I can see, when executing command cmder /single /, it opens the new tab in the current directory rather than user profile, but it still ignores the directory I've passed. It is however a slightly more convenient behavior. It doesn't make any difference when duplicating a tab, tab opens in user profile.

Thanks for trying to help.

@kermage
Copy link

kermage commented Aug 15, 2015

I found this is not getting through...
https://github.com/bliker/cmder/blob/master/launcher/src/CmderLauncher.cpp#L115

@DoCode
Copy link
Contributor

DoCode commented Aug 17, 2015

but CMDER_START is not set... why?

@MartiUK MartiUK added this to the 1.3 milestone Oct 14, 2015
MartiUK added a commit that referenced this issue Nov 20, 2015
Enable the '/single' switch (#577)
@MartiUK MartiUK self-assigned this Dec 14, 2015
@MartiUK
Copy link
Member

MartiUK commented Dec 14, 2015

#772

sonictk pushed a commit to sonictk/cmder that referenced this issue May 21, 2016
@stale
Copy link

stale bot commented May 25, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. Thank you for your contribution.

@stale stale bot added the 👀 Awaiting Response Waiting to hear back from the issue reporter. label May 25, 2019
@stale
Copy link

stale bot commented Jun 1, 2019

This issue has been automatically closed due to it not having any activity since it was marked as stale. Thank you for your contribution.

@stale stale bot closed this as completed Jun 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants