[How to] Setup oh-my-zsh in Manjaro


1.install zsh

sudo pacman -S zsh zsh-completions
cat /etc/shells
chsh -s /bin/zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

then you can start konsole and in set-edit configuration shell- routine-command,change/bin/bash to /bin/zsh
2.config zsh
(1)zsh-syntax-highlighting 语法高亮显示
Simply clone this repository and source the script:

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/plugins/zsh-syntax-highlighting

Then, enable syntax highlighting in the current interactive shell:在zshrc文件末尾加入下面的信息用alt+.显示隐藏文件

source ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

(2)autosuggestions 自动补充
Clone this repository into $ZSH_CUSTOM/plugins (by default ~/.oh-my-zsh/custom/plugins)

git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions

Add the plugin to the list of plugins for Oh My Zsh to load:add to ~.zshrc at end.

source ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh

修改Oh-My-Zsh agnoster匹配字体



默认Ubuntu 终端使用的是 Ubuntu mono regular字体 13字号
精简 user@hostname:添加export DEFAULT_USER="username"到~/.zshrc中,可以隐藏固定的 user@hostname 信息。


Since I don’t see a question there, I suspect you intended this for the Tutorial section.

If so, I would clean up the formatting a bit, and move it to tutorials.


If you want an easy zsh config, I would like to recommend the manjaro-zsh-config package. It is excellent.
sudo pacman -S manjaro-zsh-config


Another easy option is zim:

It is much faster than oh-my-zsh.

Zsh config like fish

There is already a great tutorial here about oh-my-zsh.


oh,yes this is a good idea!! Thanks.


I post this for using zsh. So move it to tutorials


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