1
0
Fork 0

task: Separate config and state management

This commit is contained in:
Jeremy Kaplan 2021-04-30 13:32:47 -07:00
commit 3057b4bfc5
4 changed files with 11 additions and 0 deletions

View file

@ -3,6 +3,7 @@
- mkdir -p ~/.config/direnv
- mkdir -p ~/.task
- ./bin/set-colors
- ./task/install
- clean: ['~', '~/.config']

3
task/.gitignore vendored
View file

@ -2,3 +2,6 @@
/sync
/color.theme
# This contains state for the task CLI
/.taskrc

7
task/install Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
CURDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
TEMPLATE="${CURDIR}/taskrc-template"
DESTINATION="${CURDIR}/.taskrc"
[ -f "${DESTINATION}" ] || cp -v "${TEMPLATE}" "${DESTINATION}"