rwxrob-dot/scripts/quotes
Rob Muhlestein 2ea0289e9f Rebase
2022-02-09 02:29:05 -05:00

20 lines
300 B
Bash
Executable File

#!/usr/bin/env bash
# Opens the default quotes file with vim. Prompts to commit.
dir="${KN}/quotes"
file="${dir}/README.md"
mkdir -p "${dir}"
vim +3 "${file}"
read -p 'Do you want to commit? ' commit
if [[ ! $commit =~ ^[Yy] ]]; then
exit
fi
cd "${dir}"
git add "${file}"
git commit
git push