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

tmux prompt corruption with git_prompt_info #559

Closed
jhartikainen opened this issue Aug 19, 2011 · 6 comments
Closed

tmux prompt corruption with git_prompt_info #559

jhartikainen opened this issue Aug 19, 2011 · 6 comments

Comments

@jhartikainen
Copy link

Inside a tmux session, if you use zsh with oh-my-zsh themes that use the git_prompt_info, it causes corruption of the prompt/line when in a Git repository directory.

Steps:

  1. Enable theme with git_prompt_info (I use flazz)
  2. Go into a directory with .git
  3. You should notice the prompt contains some extra spaces, and typing causes the characters to appear in the space. You should additionally notice that if you try editing a line from history, it will be shifted a few spaces forwards making it hard to edit it correctly.

Expected:

No issue in step 3

Possible cause:

Users on the zsh IRC channel said it was probably caused by the output of the git_prompt_info command, and not caused by tmux itself.

@novocaine
Copy link

also experiencing this

@sorin-ionescu
Copy link
Contributor

This is caused by broken unicode support in tmux, not by OMZ. Try a theme that does
not have pictographs for status indicators.

Are you using the latest tmux? I believe the latest version fixed quite a few unicode
bugs.

@ghost
Copy link

ghost commented Nov 3, 2011

I have the latest tmux version (1.5 on Archlinux 64), and I'm not using OMZ, and I see an annoying space in tmux only (with or without a .git in the directory)
My .zshrc https://github.com/kooothor/Dotfiles/blob/master/.zshrc

I think the bug comes from tmux itself...

@ghost
Copy link

ghost commented Nov 4, 2011

To solve the bug, start tmux with the -u flag (to get unicode working).
More info here http://comments.gmane.org/gmane.comp.terminal-emulators.tmux.user/1885

@eri451
Copy link

eri451 commented Feb 27, 2013

helpful thanks

@moeabdol
Copy link

Thanks @kooothor this worked on my zsh tmux session on archlinux.

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

6 participants