dots/README

17 lines
387 B
Text
Raw Normal View History

2023-08-26 14:19:53 +02:00
#!/bin/sh
# To install configuration, run this file with a directory name of the config
# example: ./README zsh # installs zsh config
if ! command -v stow > /dev/null; then
printf 'missing "stow" dependency\n'
fi
[ -e "$1" ] && stow "$1" || echo "package \"$1\" not found"
if [ -e "$1.README" ]; then
printf '%s.README\n======\n' "$1"
cat "$1.README"
printf '\n'
fi