1

I messed around with my Kali terminal, and now the $ doesn't display properly. I've tried rebooting, and also reset the default terminal setting, but alas it's still messed up. Any ideas how I can reset it or fix this?

Video link showing issue using Vim on .bashrc: https://youtu.be/C5SR19o4lT8

rinran@localhost:~$ printf '%s\n' "$PS1"
\[\e]0;\u@\h: \w\a\]${VIRTUAL_ENV:+($(basename $VIRTUAL_ENV)) }${debian_chroot:+($debian_chroot)}\[\033[1;34m\]\u@\h\[\033[00m\]:\[\033[;32m\]\[\033[01m\]\w\[\033[00m\]\$

Terminal

.bashrc

prompt alternative

terminal font

9
  • Check your ~/.bashrc where you set the prompt, it's the PS1 variable. Read man bash.
    – waltinator
    Jan 11, 2022 at 3:17
  • 1
    Please edit your question and add the output of printf '%s\n' "$PS1".
    – terdon
    Jan 11, 2022 at 8:05
  • 4
    I think your issue is the non-monospace terminal font.
    – pLumo
    Jan 11, 2022 at 14:05
  • 2
    In your screenshots its clearly not monospace.
    – pLumo
    Jan 11, 2022 at 14:11
  • 1
    it's not the problem only with $, as you can see all texts in the other screenshots are like that, so as pointed it's your terminal's font problem Jan 11, 2022 at 14:52

1 Answer 1

1

Figured it out. I had to go into /home/user/.config/qterminal.org/qterminal.ini and edit fontFamily to

fontFamily=Monospace

If I did it in terminal it didn't save (even as root), so I used a GUI editor and saved it, fixed!

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .