Changing color for commands in konsole

I want to change color for commands in konsole like cd, ls to be different from the rest of the line. I used a lot of color schemes and the whole line get the same color not what I want.

Here you go:

Search works too.

how to save it? when I close terminal it returns to default btw I meant changing the word "cd" color only to be different to the rest of the line like that: "cd" is red "/usr/share" is green

I'm afraid neither of the existing terminals nor shells support that.

I hope they support it in the future

zsh does:
image

Valid commands are green, invalid are red, rest of line tends to be white.

1 Like

I installed it and its plugins. It works with me in the start, but seems that I did something that screwed it and all code has the same color

Did you use chsh to change your shell?

yeah the shell is zsh but text color is same as bash. When I tried to change its color from kosnole settings it changed

11 community/zsh-syntax-highlighting 0.7.1-1 [installed]
      Fish shell like syntax highlighting for Zsh

Then in .zshrc:

source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

Check the paths are correct for your install.

Do u mean, run this from shell or copy it to a file?

Install it. Then edit the file .zshrc and add the line I gave above.

install it with pacman like this?

sudo pacman -S zsh-syntax-highlighting
1 Like

That will do it.

1 Like

Thank you, it worked

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by