17 lines
387 B
Bash
17 lines
387 B
Bash
#!/usr/bin/env bash
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Description:
|
|
# Install neofetch.
|
|
#
|
|
|
|
if ! command -v "neofetch" &>/dev/null; then
|
|
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
|
sudo apt-get install neofetch -qq
|
|
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
|
brew install neofetch
|
|
fi
|
|
fi
|
|
|
|
echo "$(neofetch --version)"
|