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

Doesn't work properly with non-ASCII paths and selected folders #2

Open
olegcherr opened this issue Jul 23, 2017 · 0 comments
Open

Comments

@olegcherr
Copy link

olegcherr commented Jul 23, 2017

Hi!
Seems like the repo hasn't been maintained for a long time, but this note still may be helpful for users.

So...
chere uses such command to launch the shell:

C:\cygwin64\bin\mintty.exe -e /bin/xhere /bin/bash.exe "%V"

This command has 2 problems:

  1. It doesn't work with paths having non-ASCII characters.
    The home directory (~) is being open instead.
    Try it out by yourself by creating a folder like C:/Проект/dist

  2. It doesn't open the currently selected in the Explorer folder:
    image

Workaround?

I'm currently using another command:

"C:\cygwin64\bin\mintty.exe" --dir "%V" -e /bin/env CHERE_INVOKING=1 /bin/bash --login

It utilizes the --dir option mentioned in the mintty docs and works well in all the cases.
I'm not sure is it a perfect solution or not, but I didn't notice any cons so far.

So, here is my version of Cygwin-Bash-Here.

PS

Did you know that both approaches don't work properly with Drives?
For example, try to open terminal via this context menu called for disk C:/ in MyComputer. It will open the system32 directory.

Due to this problem I wouldn't add registry entries to HKCR/Drive/**

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

1 participant