sudo pacman -Syu zsh
You do not need to install manjaro-zsh-config
and all the other related packages like zsh-syntax-highlighting
, zsh-history-substring-search
, zsh-autosuggestions
, etc., as we will use Oh My Zsh.
1. Install Oh My ZSH
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
or
sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
and
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
Modify the ~/.zshrc
config file editting plugins section like this:
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
)
Change the theme to agnoster:
ZSH_THEME="agnoster"
source ~/.zshrc
chsh -s $(which zsh)
P.S. Pls, note that this can be outdated and not relevant. I'm not currently using Manjaro as my daily driver.
I am using manjaro xfce and I have used chsh but it didn't change the default shell it's showing that my root shell is zsh but i am still seeing bash when I open the terminal.
For me this worked
sudo usermod --shell $(which zsh) <username>
just write your username which you are login with. Hope it fix someone's issue.