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

Msys2-connector does not properly track cwd when using \w with ~ paths. #1752

Open
Cobertos opened this Issue Nov 12, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@Cobertos
Copy link

Cobertos commented Nov 12, 2018

Versions

ConEmu build: 180626 x64
OS version: Windows 10 x64
Used shell version: msys2 connector

Problem description

It seems the msys2-connector (maybe?) has issues handling the OSC coming from PS1 as specified in the docs with trying to integrate ConEmu with { Git : bash }. Updates to the current working directory do not work in any path prefixed by ~ when using \w but do work when using $PWD.

I'm not sure if this is an msys2-connector issue or a documentation issue.

Steps to reproduce

  1. Open { Git : bash }
  2. PS1="$PS1\\[\\e]9;9;\"\\w\"\\007\\e]9;12\\007\\]"
  3. Navigate to a folder with ~ in it
  4. Duplicate session (I believe the default is [Win] + S).
  5. Notice how the current working directory is not kept.

Workaround: Use \$PWD for the file path instead. PS1="$PS1\\[\\e]9;9;\"\$PWD\"\\007\\e]9;12\\007\\]" will work!

See the attached .gif below

Additional files

conemu-baskslashw-versus-pwd

@Cobertos Cobertos changed the title Msys2-connector does not properly keep cwd when using \w with ~ paths. Msys2-connector does not properly track cwd when using \w with ~ paths. Nov 12, 2018

@Maximus5

This comment has been minimized.

Copy link
Owner

Maximus5 commented Nov 13, 2018

I doubt you are using connector. AFAIR there must be g bash.exe in the StatusBar

@Cobertos

This comment has been minimized.

Copy link
Author

Cobertos commented Nov 13, 2018

Well, if it's not a connector issue, it's at least a documentation issue?

But here's my task, I just use the defaults for the most part
image

I assumed --command=...conemu-msys2-64.exe portion means that I am using the connector.

@Maximus5

This comment has been minimized.

Copy link
Owner

Maximus5 commented Nov 13, 2018

I need to check this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.