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
ConEmu doesn't start new shell in same directory when duplicating tab #1526
Comments
Read your own documentation, mate. And my steps. Especially this line:
Read very carefully because this link goes to this EXACT page you are referring. |
Your description is rather abstract. What shell are you trying? What exact steps have you made to configure it? |
Just rechecked and Duplicate starts new cmd shell in proper folder. |
I have tried in git-bash without connector, msys2 with connector and powershell. Also mentioned them in my issue description. For git-bash in ~/.bash_profile: if [[ -n "${ConEmuPID}" ]]; then
PROMPT_COMMAND='ConEmuC -StoreCWD'
fi For msys2 in ~/.bash_profile: if [[ -n "${ConEmuPID}" ]]; then
PS1="$PS1\[\e]9;9;\"\w\"\007\e]9;12\007\]"
fi For powershell in %UserProfile%\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1: function ANSI () {
$ESC = [char]27
$ST = "$ESC\"
$reset = "$ESC[m"
$black = "$ESC[30m"
$red = "$ESC[31m"
$green = "$ESC[32m"
$yellow = "$ESC[33m"
$blue = "$ESC[34m"
$magenta = "$ESC[35m"
$cyan = "$ESC[36m"
$white = "$ESC[37m"
$CWD = "$ESC]9;9;"
$Title = "$ESC]0;"
}
function IsConEmu () {
$exitcode = 0;
try {
& ConEmuC.exe --% /IsConEmu
$exitcode = $LASTEXITCODE
}
catch [System.Management.Automation.CommandNotFoundException] {
$exitcode = 2;
}
$IsConEmu = $exitcode -eq 1
return $IsConEmu
}
function prompt () {
if (IsConEmu) {
. ANSI
$prompt = `
"${Title}PS $PWD${ST}" + `
"${CWD}$PWD${ST}" + `
"${reset}" + `
"${green}$env:USERNAME@$env:COMPUTERNAME ${yellow}$PWD`n" + `
"${reset}`$ "
} else {
$prompt = `
"PS $PWD`n" + `
'$ '
}
return $prompt
} |
Just checked cmd.exe. In cmd.exe it works, yes. But I don't use this thing. |
And how do you run these shells? As you said, it works with cmd, that means if ConEmu able to know shell CD, things work. So, it is either your shell doesn't report CD to ConEmu (easy to check with tab templates or even via "Restart..." dialog), Neither of these is related to ConEmu, just config of your shell. |
Do you have problems with reading comprehension? There https://conemu.github.io/en/ShellWorkDir.html#connector-ps1 if [[ -n "${ConEmuPID}" ]]; then
PS1="$PS1\[\e]9;9;\"\w\"\007\e]9;12\007\]"
fi One of the examples. If you even read what I post you will see that I already posted that. Fuck, man. What is wrong with you? |
What's wrong with you? Do you really think the rudeness helps??? |
Do you have problems with reading comprehension? I've asked you
|
Versions
ConEmu build: 180422 x64
OS version: Windows 8.1 x64
Used shell version (Far Manager, git-bash, cmd, powershell, cygwin, whatever): git-bash, msys2, powershell
Problem description
In Duplicate root... command description it says:
But it doesn't do what it says.
Steps to reproduce
cd
to another directory.Actual results
Shell starts in starting directory.
Expected results
Shell starts in directory of duplicated shell.
Additional files
Settings and whatever.
The text was updated successfully, but these errors were encountered: