zsh

I’ll walk you through the installation and the setup for autosuggestions, syntax highlighting, and autocomplete.

1. Install zsh and git

First, ensure the core requirements are installed on your Fedora system.

sudo dnf install zsh git curl -y

2. Install Oh My Zsh

Run the official install script. It will ask if you want to change your default shell to Zsh; type y and provide your password when prompted.

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

3. Install plugins

The most popular „auto” plugins (autosuggestions and syntax highlighting) are not built into Oh My Zsh by default, so you need to clone them into your custom plugins folder.

zsh-autosuggestions (Suggests commands based on history):

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

zsh-syntax-highlighting (Colors commands as you type):

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

zsh-autocomplete (Real-time dropdown menus for completion):

git clone --depth 1 https://github.com/marlonrichert/zsh-autocomplete.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autocomplete

4. Enable plugins in .zshrc

Now you need to tell Oh My Zsh to actually load them. Open your configuration file:

nano ~/.zshrc

Find the line that starts with plugins=(...). It usually just has git by default. Update it to look like this:

plugins=(
    git
    zsh-autosuggestions
    zsh-syntax-highlighting
    zsh-autocomplete
)

5. Apply changes

Save and exit (if using nano, press Ctrl+O, Enter, then Ctrl+X). Finally, refresh your shell:

source ~/.zshrc