Use stow for managing dotfiles

This commit is contained in:
Oliver Davies 2021-07-10 22:20:50 +01:00
parent 7b29ee2104
commit 7fed1cf922
83 changed files with 61 additions and 40 deletions

View file

@ -1,26 +0,0 @@
#!/bin/bash
set -e
ensure_is_published() {
[[ ! $is_published ]] && git publish
}
is_published() {
echo $(git upstream)
}
open_or_build_pull_request() {
type gh &>/dev/null
if [ $? -ne 0 ]; then
echo "Error: gh command not found."
exit 1
fi
# Load an existing PR, or create a new one.
gh pr view --web || gh pr create --assignee opdavies --web
}
ensure_is_published
open_or_build_pull_request