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

Weird characters on Bash on Ubuntu on Windows #20

Closed
stereokai opened this issue Dec 13, 2016 · 7 comments
Closed

Weird characters on Bash on Ubuntu on Windows #20

stereokai opened this issue Dec 13, 2016 · 7 comments

Comments

@stereokai
Copy link

stereokai commented Dec 13, 2016

First of all, @lyze, huge thank you for porting this extension to bash! I've been using Powershell with Git on Windows for the better part of my career. Now I'm transitioning to Hyper with native Bash on Windows in Windows 10 - and I'm happy that I can continue using this excellent syntax.

I followed your instructions precisely:
bashrc

And consequently the prompt is shown with the Git Posh syntax, on Hyper:
hypertm
However, do you notice the in the start of the prompt line?

My goal is to use Hyper (terminal emulator) with the native Bash on Windows (which is Bash version 4.3). However, if I'm just loading Bash by itself, this is what I'm getting:
bash on windows

As you can see the repo status is all messed up, but I don't mind because it displays correctly on Hyper. But can you see that character in the start of the prompt line?

@lyze
Copy link
Owner

lyze commented Dec 13, 2016

I made a cursory search. Hyper seems to have some issues related to displaying Unicode:

Can you see if any workarounds in those threads work for you?

As a fallback, you can always get rid of the status indicators in the code.

@lyze
Copy link
Owner

lyze commented Dec 13, 2016

As for using native Windows 10 bash work with Unicode characters, I found this: http://superuser.com/questions/1108443/utf8-characters-in-windows-10-bash-terminal

@stereokai
Copy link
Author

@lyze props for such a quick reply and an extensive research. What did you mean by this?

As a fallback, you can always get rid of the status indicators in the code.

@stereokai
Copy link
Author

stereokai commented Dec 13, 2016

I couldn't find a fix via those links, however, removing the user@host portion of the prompt also removed that hidden character. Guess it was just some vim hiccup. I don't require that kind of info so I'm happy :)

@lyze
Copy link
Owner

lyze commented Dec 13, 2016

What did you mean by this?

As a fallback, you can always get rid of the status indicators in the code.

You can also change the status symbol to your liking around here.

You can also set bash.enableStatusSymbol your git configuration to be false (explained in the README).

@stereokai
Copy link
Author

I don't have a problem with the status symbols, though. They are great :)

In fact, I did want to replace the $ symbol with something else, but couldn't make it work.

@lyze
Copy link
Owner

lyze commented Dec 14, 2016

I meant that the status symbols are Unicode characters, and may have been part of your problem. It seems you found the root cause, though.

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

2 participants