bin/fetch

11 lines
254 B
Bash
Executable File

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