23
submitted 2 years ago by tubbadu@lemmy.kde.social to c/linux@lemmy.ml

Hello! I have changed my PROMPT variable for bash and zsh in the following:

TRIANGLE=$'\uE0B0'
COLOR_1="#089B89"
COLOR_2="#FCFCFC"
COLOR_3="#3B4045"
PROMPT="%K{$COLOR_1} %n@%M%F{$COLOR_1}%K{$COLOR_2}$TRIANGLE%F{$COLOR_1} %~%F{$COLOR_2}%K{$COLOR_3}$TRIANGLE%f%k " #%K{#1BA58A}%F{black}$TRIANGLE

and I'm using the Noto Sans Mono fonts, but this happens on other fonts as well.

How can I get rid of the white lines before the triangle? should I use a specific font?

all 10 comments
sorted by: hot top controversial new old
[-] fmstrat@lemmy.nowsci.com 17 points 2 years ago

I could do it in a few seconds with GIMP.

[-] bbbhltz@beehaw.org 14 points 2 years ago

Have you tried with the Nerd Fonts?

[-] Scraft161@iusearchlinux.fyi 10 points 2 years ago

They happen because the font is not patched property, your best bet is getting the nerd fonts and trying those, popular fonts will generally look nicer.

[-] tubbadu@lemmy.kde.social 1 points 2 years ago

I installed FiraCode Nerd Fonts, FiraMono Nerd Fonts and Hack Nerd Fonts from here, and only FiraMono was able to not display that vertical line. I suspect the line is caused by the "Smooth fonts" setting in the profile settings > appearance, because unsetting it hides the line in other fonts (but the fonts looks terrible). thanks for the help!

[-] JoeKrogan@lemmy.world 9 points 2 years ago* (last edited 2 years ago)

Its been a while since I had a setup with the prompt like that but I think you may need a patched font for it.

https://stackoverflow.com/questions/32443522/triangular-background-for-bash-ps1-prompt

[-] tubbadu@lemmy.kde.social 1 points 2 years ago

replying to @yote_zip@pawb.social because the direct reply failed:

I ctrl+F "Noto" and as it returned 0 results I just assumed they weren't there... thank you!! however, these fonts, as many other, still have this line issue. only FiraMono fonts didn't:

this post was submitted on 17 Jul 2023
23 points (96.0% liked)

Linux

56448 readers
577 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS