dotfiles/.reminders/edit.sh

30 lines
385 B
Bash
Raw Normal View History

2023-01-08 17:34:37 +01:00
#!/bin/sh
git_pull() {(
cd "$1"
git pull
)}
git_push() {(
cd "$1"
git add *
git commit -m "Calendar Update $(date)"
git push
)}
git_pull personal
git_pull uugrn
F="$(find . \
-mindepth 1 \
-not -path "*/.git/*" \
-not -name "100-*" \
-type f \
-name "*.rem" \
| fzf)"
[ ! -z "$F" ] && vim "$F"
git_push personal
git_push uugrn