This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/os/arch_linux/todo.bash
2016-10-25 20:01:42 -05:00

29 lines
1 KiB
Bash
Executable file

#!/usr/bin/env bash
DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )/../.." && pwd)
source $DIR/variables.bash
pacaur -S \
todotxt-git \
--noconfirm --noedit
if [ ! -f "$HOME/.todo/config" ]; then
mkdir -p "$HOME/.todo"
cp /usr/share/todotxt/todo.cfg "$HOME/.todo/config"
vim "$HOME/.todo/config"
fi
mkdir -p "$HOME/.todo.actions.d"
curl -L http://github.com/fnd/todo.txt-cli/raw/extensions/commit > "$HOME/.todo.actions.d/commit"
curl -L https://raw.github.com/crobinsonut/todo_distributed/master/push > "$HOME/.todo.actions.d/push"
curl -L https://raw.github.com/crobinsonut/todo_distributed/master/pull > "$HOME/.todo.actions.d/pull"
curl -L https://raw.github.com/crobinsonut/todo_distributed/master/sync > "$HOME/.todo.actions.d/sync"
curl -L http://github.com/mbrubeck/todo.txt-cli/raw/master/todo.actions.d/edit > "$HOME/.todo.actions.d/edit"
chmod +x "$HOME/.todo.actions.d/commit"
chmod +x "$HOME/.todo.actions.d/pull"
chmod +x "$HOME/.todo.actions.d/push"
chmod +x "$HOME/.todo.actions.d/sync"
chmod +x "$HOME/.todo.actions.d/edit"