bin/fetch

12 lines
263 B
Plaintext
Raw Normal View History

#!/bin/sh
2018-11-22 02:39:53 -06:00
name="$(basename "$0" .sh)"
if command -v neofetch > /dev/null 2>&1; then
2018-11-16 20:51:57 -06:00
neofetch
2018-12-05 00:03:55 -06:00
sleep 3
2018-11-22 02:39:53 -06:00
scrot "$HOME/Pictures/Screenshots/neofetch-$(date +%s).png"
else
2018-11-22 02:39:53 -06:00
# shellcheck disable=1117
printf "%s: Neofetch is not installed; aborting\n" \
"$name"
fi