shell/install/omz-clean

20 lines
487 B
Plaintext
Raw Permalink Normal View History

2022-07-05 02:50:35 +00:00
#!/bin/bash
##makedesc: Install omz (latest)
2022-07-05 02:50:35 +00:00
echo
echo "==============================================="
echo "Installing omz (latest)..."
2022-07-05 02:50:35 +00:00
echo "==============================================="
echo
installed() {
command -v "$1" >/dev/null 2>&1
}
if ! installed zsh || ! installed git || ! installed curl; then
echo "ERROR: you need git, zsh and curl to be installed!"
exit 1
fi
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"