Yannick Lehnhausen / My ZSH Setup in Archlinux
Created 2020-07-14 Modified 2020-07-14

213 Words


After switching from Bash to ZSH, I discovered oh-my-zsh.


oh-my-zsh is a great customizable framework adding a lot of functionality to ZSH. While I heard and on older hardware definitely noticed the overhead from oh-my-zsh throttling the performance of the terminal, I have no problem with the small setup I am using at the moment, especially on a new device like the T480s.


The cool part about oh-my-zsh is the easy plugin management. The plugins I use are:

Installing these plugins is just a matter of downloading them into the ~/.oh-my-zsh/custom/plugins folder and activating them in the ~./zshrc config file.


You can download zsh-autosuggestions by typing

 git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions 

in the terminal and adding

plugins=(... zsh-autosuggestions ...)

in your ~/.zshrc file.

Syntax Highlighting

Same with zsh-syntax-highlighting

 git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
plugins=(... zsh-syntax-highlighting ...)

Fuzzy Finder

fzf is a package from the AUR and has to be installed by your AUR manager of choice and is activated by adding

plugins=(... fzf ...)


Adding Spaceship, you can download it by running

git clone https://github.com/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt"

and linking it to the oh-my-zsh custom themes directory

ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"

Since this is a theme and not a plugin you have to set ZSH_THENE="spaceship"``in your ~/.zshrc` file.