add install.sh
This commit is contained in:
15
install.sh
Executable file
15
install.sh
Executable file
@@ -0,0 +1,15 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# install.sh: Stow all packages in this dotfiles repo.
|
||||||
|
# Run this after cloning on a new machine.
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
DOTFILES_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||||
|
|
||||||
|
for PACKAGE in "$DOTFILES_DIR"/*/; do
|
||||||
|
PACKAGE="$(basename "$PACKAGE")"
|
||||||
|
echo "Stowing: $PACKAGE"
|
||||||
|
stow --dir="$DOTFILES_DIR" --target="$HOME" --restow "$PACKAGE"
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "Done."
|
||||||
Reference in New Issue
Block a user