I’m using Manjaro KDE with no significant theme/config tweaks.
Each time one of these “big systems updates” happen, my Konsole ZSH configuration resets. After the update, when I reboot and open Konsole, I get a plain old zsh shell with no colors/tab completions/suggestions/path indicators/icons or anything. Even when I press “CTRL+Left” arrow, some Unicode chars appear instead of moving the cursor.
When this happens, I replace the ~/.zshrc with the following content,
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# Use powerline
USE_POWERLINE="true"
# Source manjaro-zsh-configuration
if [[ -e /usr/share/zsh/manjaro-zsh-config ]]; then
source /usr/share/zsh/manjaro-zsh-config
fi
# Use manjaro zsh prompt
if [[ -e /usr/share/zsh/manjaro-zsh-prompt ]]; then
source /usr/share/zsh/manjaro-zsh-prompt
fi
# Use manjaro zsh 10k
if [[ -e /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme ]]; then
source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
fi
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=8'
# zsh-syntax-highlighting plugin
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# CTRL+Left and CTRL+Right
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
# File/Dir colors
export LS_OPTIONS='--color=auto'
eval "$(dircolors -b)"
alias ls='ls $LS_OPTIONS'
After that, starting the Konsole triggers the powerlevel10k setup, and then everything works well. But this happens every time a 300 MB - 400 MB system update happens. One of my friends got the same issue and fixed it by reinstalling Manjaro, every time it comes.
Info :
Installation: Manjaro KDE - minimum ISO
System update method: Pamac GUI
/etc/skel/ do not have a .zshrc
Not using any external themes/configs for system/Konsole/zsh or anything.
The terminal inside vscode is also affected.
Current system info :
uname -a =>
Linux blaze 5.13.19-2-MANJARO #1 SMP PREEMPT Sun Sep 19 21:31:53 UTC 2021 x86_64 GNU/Linux
cat /etc/lsb-release =>
DISTRIB_ID=ManjaroLinux
DISTRIB_RELEASE=21.1.5
DISTRIB_CODENAME=Pahvo
DISTRIB_DESCRIPTION="Manjaro Linux"