bin/fetch
2018-12-05 00:03:55 -06:00

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