-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Highlighting style not working in tmux. #229
Comments
I'm experiencing the same issue. I've enabled |
tmux default TERM is screen: $ env | grep TERM
TERM=screen You can solve it like this: echo "export TERM=xterm-256color" >> ~/.zshrc
exec zsh |
If you use MacOS iTerm2, you may need to modify the terminal type. MacOS iTerm2:
|
Sounds like this is solved. Thanks everyone 👍 |
Just came across another relevant link. See the tmux FAQ: https://github.com/tmux/tmux/wiki/FAQ#how-do-i-use-a-256-colour-terminal |
Setting the default term to
|
Thanks.
|
Description & solution: zsh-users/zsh-autosuggestions#229
However, I have read that
Would this workaround perhaps break other things? |
Fix zsh-autosuggestions highlighting stye not working in Tmux ref: zsh-users/zsh-autosuggestions#229 (comment)
yes, neovim for example |
my workaround (gnome terminal) is term prefs -> profiles -> show bold text in bright colors and
no doubt you can do the first part in gconf if you like this causes text in the terminal to be bold (and bright) and suggestions to be "normal" |
I know this is old, but in 2023 this still worked for me! |
I have added this in .zshrc . this seems to not work for me. I have ubuntu 22.04 |
Using TPM (Tmux Plugin Manger) and the |
Everything is ok when using zsh. The highlighting style of autosuggestions(I changed it to fg=240) works. But when I use tmux, the color of the suggestions did not change to what I expected(fg=240). The color is exactly the origin command line color. Other functions like right arrow key to complete or command line suggestions work well. There's only problem about highlighting styles in tmux. Any suggestion?
The text was updated successfully, but these errors were encountered: