2

I have upgraded my system with sudo pacman -Syu, then I opened a terminal and saw this.

enter image description here

Any suggestions, how to fix this issue?

  • 3
    It is possible you wrote your `~/.zshrc` from a MS Windows editor which added a UTF-8 BOM at the start of the file? You may want to run `LC_ALL=C sed -n l < ~/.zshrc` to help you spot invisible characters in the file. – Stéphane Chazelas Jan 30 '21 at 08:17
  • You could also try `LC_ALL=C zsh -x ~/.zshrc` to clearly see what it being executed. – Stéphane Chazelas Jan 30 '21 at 08:20
  • See also [How can I remove the BOM from a UTF-8 file?](//unix.stackexchange.com/q/381230) – Stéphane Chazelas Jan 30 '21 at 08:21
  • MS also adds a carrage-return at the end of lines. – ctrl-alt-delor Jan 30 '21 at 09:34
  • If the above does not fix then show us the file `~/.zshrc`, or at least the start of it, well at least line 1. And show text as text, images of text can be hard to read, especially by blind people. – ctrl-alt-delor Jan 30 '21 at 09:38
  • @StéphaneChazelas Thanks it helped me find out the fault. @ctrl-alt-delor ```\357\273\277# Enable Powerlevel10k instant prompt. Should stay close \ to the top of ~/.zshrc.$``` This is my first line of .zshrc file. So i just need to remove those BOM characters. – satyaban sahoo Jan 30 '21 at 12:19

0 Answers0