forked from cohabit/server_config
16 lines
752 B
Bash
16 lines
752 B
Bash
# Check if eza already installed
|
|
if [[ $(which eza) != "/usr/bin/eza" ]]; then
|
|
# Install sources and keys
|
|
mkdir -p /etc/apt/keyrings
|
|
wget -qO- https://raw.githubusercontent.com/eza-community/eza/main/deb.asc | gpg --dearmor -o /etc/apt/keyrings/gierens.gpg
|
|
echo "deb [signed-by=/etc/apt/keyrings/gierens.gpg] http://deb.gierens.de stable main" | tee /etc/apt/sources.list.d/gierens.list
|
|
chmod 644 /etc/apt/keyrings/gierens.gpg /etc/apt/sources.list.d/gierens.list
|
|
apt update # Cache new repository
|
|
fi
|
|
|
|
# Install or upgrade zsh and eza
|
|
nala install -y zsh eza
|
|
|
|
# Check if Oh-My-ZSH already installed
|
|
test -d /root/.oh-my-zsh/ || sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
|