bin/fetch

12 lines
263 B
Bash
Executable File

#!/bin/sh
name="$(basename "$0" .sh)"
if command -v neofetch > /dev/null 2>&1; then
neofetch
sleep 3
scrot "$HOME/Pictures/Screenshots/neofetch-$(date +%s).png"
else
# shellcheck disable=1117
printf "%s: Neofetch is not installed; aborting\n" \
"$name"
fi