Remove notes and tasks scripts

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2019-07-09 21:14:26 +02:00
parent 12b0f14748
commit f602972a52
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
4 changed files with 1 additions and 97 deletions

View file

@ -1,30 +0,0 @@
#!/usr/bin/env bash
#
# SCRIPT NAME:
# sync-notes
#
# AUTHOR:
# Severin Kaderli <severin@kaderli.dev>
#
# DESCRIPTION:
# Sync notes in ~/Notes using git
#
# USAGE:
# ./sync-notes
. /home/severin/.local/bin/utils
if [ ! -d "/home/severin/notes" ]; then
exit
fi
print_time_log "sync-notes" "Synchronizing notes"
if [ "${IS_WORK}" = "1" ]; then
export GIT_SSH_COMMAND="ssh -i /home/severin/.ssh/severin_id_rsa"
fi
cd "/home/severin/notes" || exit
git pull -X theirs
git add --all
git commit -s -m "Update notes"
git push origin master

View file

@ -1,33 +0,0 @@
#!/usr/bin/env bash
#
# SCRIPT NAME:
# sync-tasks
#
# AUTHOR:
# Severin Kaderli <severin@kaderli.dev>
#
# DESCRIPTION:
# Sync tasks in ~/tasks using git
#
# USAGE:
# ./sync-tasks
. /home/severin/.local/bin/utils
if [ ! -d "/home/severin/tasks" ]; then
exit
fi
print_time_log "sync-tasks" "Synchronizing tasks"
export TASKDATA="/home/severin/tasks"
export TASKRC="/home/severin/.config/task/taskrc"
if [ "${IS_WORK}" = "1" ]; then
export GIT_SSH_COMMAND="ssh -i /home/severin/.ssh/severin_id_rsa"
fi
cd "/home/severin/tasks" || exit
git pull -X theirs
git add --all
git commit -s -m "Update tasks"
git push origin master