Zuerst zsh installieren

Debian

BASH

apt install zsh zsh-autosuggestions zsh-autocomplete zsh-syntax-highlighting

Arch

BASH
pacman -S zsh`

OhmyZsh installieren

BASH
sh -c "$(wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"

Config

BASH
micro ~/.zshrc

Debian

ZSH
export ZSH="$HOME/.oh-my-zsh"  
ZSH_THEME="agnoster"  
zstyle ':omz:update' mode auto  
HIST_STAMPS="yyyy-mm-dd"  

plugins=(  
 alias-finder  
 aliases  
 colored-man-pages  
 colorize  
 dirhistory  
 debian  
 git  
 history  
 ssh-agent  
 sudo  
 systemd  
 tailscale  
 zsh-autosuggestions  
 zsh-autocomplete  
 zsh-syntax-highlighting  
)  

source $ZSH/oh-my-zsh.sh  

fastfetch  

# --- CUSTOM ALIASES ---  
alias hst='/usr/local/hestia/bin/'  
alias v-list-users='/usr/local/hestia/bin/v-list-users'  
alias ..='cd ..'  
alias ll='ls -lah'  
alias update='sudo apt update && sudo apt upgrade -y && needrestart'  
alias cls='clear'  
alias f2b='uv run ~/scripts/f2b_stats.py'  
alias banstatus="sudo fail2ban-client status | awk -F':\t' '/Jail list/ {print \$2}' | sed 's/,//g' | xargs -n1 sudo fail2ban-client status"  
alias ports='sudo ss -tulpn | grep LISTEN'  
alias myip='curl -4 icanhazip.com'  
alias h-logs='sudo tail -f /var/log/hestia/system.log'  
alias h-restart='sudo systemctl restart hestia'  
alias ta='tmux attach || tmux new-session'  
alias tls='tmux ls'  
alias del-mail='echo "d 1-1000" | mail -N > /dev/null'  
alias logs='sudo ~/scripts/check_logs.sh'  
alias mqtt='sudo tail -f /var/log/mosquitto/mosquitto.log'  
alias mqtt_logger='sudo journalctl -u mqtt-logger.service -f'  
alias venv='source .venv/bin/activate'  
alias health='sudo ~/scripts/health-check.sh'  
alias sudo='sudo env PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin'  

#Exports  
export EDITOR=micro  
export VISUAL=micro

Plugin installieren

BASH
# Gehe zum Plugin-Verzeichnis
cd ~/.oh-my-zsh/custom/plugins

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

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

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

Danach lade die Konfiguration neu:

BASH
source ~/.zshrc