diff --git a/default.conf.yaml b/default.conf.yaml index f085394..e6dbb2e 100644 --- a/default.conf.yaml +++ b/default.conf.yaml @@ -3,6 +3,7 @@ - mkdir -p ~/.config/direnv - mkdir -p ~/.task - ./bin/set-colors + - ./task/install - clean: ['~', '~/.config'] diff --git a/task/.gitignore b/task/.gitignore index a2cf3b1..5061b73 100644 --- a/task/.gitignore +++ b/task/.gitignore @@ -2,3 +2,6 @@ /sync /color.theme + +# This contains state for the task CLI +/.taskrc diff --git a/task/install b/task/install new file mode 100755 index 0000000..a223901 --- /dev/null +++ b/task/install @@ -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}" diff --git a/task/.taskrc b/task/taskrc-template similarity index 100% rename from task/.taskrc rename to task/taskrc-template