mirror of https://github.com/rwxrob/dot
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
300 B
Plaintext
20 lines
300 B
Plaintext
3 years ago
|
#!/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
|