I have 3 PCs running KDE Linux, and on two of them I can’t use Ctrl + Left Arrow or Right Arrow to change the cursor when I am in the default zsh terminal. It instead writes 5D or 5C instead of just switching the cursor position. If I switch to bash everything works fine.
I’m not sure if this is the intended behaviour or not but it is really annoying.
The two PCs who have this problem have this file .zshrc :
# This file sets up some sane defaults and a nicer prompt for ZSH.
# Comment out the below line to reset ZSH to its default settings.
source '/usr/share/zsh/plugins/kde-linux-default/kde-linux-default-zshrc.zsh'
The 3rd PC is running bash by default for some reason. If I try to switch to zsh, It doesn’t have any customisation like it is on my other two PCs.
On this PC the .zshrc file looks a lot different. It is 342 lines so I can’t paste it here but it’s mostly commented except for this :
if [ -r ~/.zshrc -a -r ~/.zshrc.global -a ! -r ~/.zshrc.local ] ; then
printf '-!-\n'
printf '-!- Looks like you are using the old zshrc layout of grml.\n'
printf '-!- Please read the notes in the grml-zsh-refcard, being'
printf '-!- available at: http://grml.org/zsh/\n'
printf '-!-\n'
printf '-!- If you just want to get rid of this warning message execute:\n'
printf '-!- touch ~/.zshrc.local\n'
printf '-!-\n'
fi
Is there a way I can fix this issue with the arrows ?
And why is zsh not enabled on this other PC ?