task: Separate config and state management
This commit is contained in:
parent
bc47213589
commit
3057b4bfc5
4 changed files with 11 additions and 0 deletions
|
|
@ -3,6 +3,7 @@
|
|||
- mkdir -p ~/.config/direnv
|
||||
- mkdir -p ~/.task
|
||||
- ./bin/set-colors
|
||||
- ./task/install
|
||||
|
||||
- clean: ['~', '~/.config']
|
||||
|
||||
|
|
|
|||
3
task/.gitignore
vendored
3
task/.gitignore
vendored
|
|
@ -2,3 +2,6 @@
|
|||
/sync
|
||||
|
||||
/color.theme
|
||||
|
||||
# This contains state for the task CLI
|
||||
/.taskrc
|
||||
|
|
|
|||
7
task/install
Executable file
7
task/install
Executable 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}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue