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

how do I disabled the underline? #573

Closed
n11dc0la opened this issue Oct 29, 2018 · 10 comments
Closed

how do I disabled the underline? #573

n11dc0la opened this issue Oct 29, 2018 · 10 comments

Comments

@n11dc0la
Copy link

how do I disabled the underline?
image

@danielshahaf
Copy link
Member

danielshahaf commented Nov 1, 2018

Add the following to your .zshrc:

(( ${+ZSH_HIGHLIGHT_STYLES} )) || typeset -A ZSH_HIGHLIGHT_STYLES
ZSH_HIGHLIGHT_STYLES[path]=none
ZSH_HIGHLIGHT_STYLES[path_prefix]=none

@mlmarius
Copy link

mlmarius commented Apr 23, 2020

I'm also having this issue. I've added the above solution to my zsh file but that gives an error on the first line. Where am I supposed to add that in order to remove the underlining ?

Later edit. To whoever reaches this point, make sure to add the above lines AFTER antigen apply

@danielshahaf
Copy link
Member

I've edited my previous comment so it'd work anywhere in the zshrc file. Thanks for the bug report :-)

@tysun
Copy link

tysun commented Oct 9, 2021

@danielshahaf This works great. Thank you. Since the underline was removed, the text now ends up white when the right arrow key is pressed to accept the suggestion. I have changed the default suggestion text colour to fg=215 in the line typeset -g ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=215'. But does anyone know where to use that same colour so that when I press the right arrow to accept the suggest the final text is the same as the colour for the suggestion fg=215 and not white? Would that be placed in the # Widgets that accept the entire suggestion block? If so, how so?

Thanks

@danielshahaf
Copy link
Member

@tysun Ask the zsh-autosuggestions support channels. https://github.com/zsh-users/zsh-autosuggestions/

@danielshahaf
Copy link
Member

Aside: given the number of 👍's and ❤️'s on the first reply on this issue, it seems we should add that information to the FAQ. Would anyone like to do the honours? Just open a PR and cross-reference it to this issue. Thanks!

@dodona2
Copy link

dodona2 commented Oct 20, 2021

Add the following to your .zshrc:

(( ${+ZSH_HIGHLIGHT_STYLES} )) || typeset -A ZSH_HIGHLIGHT_STYLES
ZSH_HIGHLIGHT_STYLES[path]=none
ZSH_HIGHLIGHT_STYLES[path_prefix]=none

works for me. Thanks a lot!

@rookieeew
Copy link

rookieeew commented May 24, 2023

Add the following to your .zshrc:

(( ${+ZSH_HIGHLIGHT_STYLES} )) || typeset -A ZSH_HIGHLIGHT_STYLES
ZSH_HIGHLIGHT_STYLES[path]=none
ZSH_HIGHLIGHT_STYLES[path_prefix]=none

Thanks guys! It works forme !!!

@hoshython
Copy link

what about sudo? There is still a line under sudo

@phy1729
Copy link
Member

phy1729 commented Feb 7, 2024

sudo is colored using the precommand style.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants