17 lines
387 B
Text
17 lines
387 B
Text
|
#!/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
|