Skip to content

Commit

Permalink
fix(configuration): add zsh_wakatime_project_detection export
Browse files Browse the repository at this point in the history
  • Loading branch information
entelecheia committed Jun 17, 2023
1 parent 6b097e9 commit 77a02e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chezmoi/.chezmoi.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@
# {{- if and (hasKey . "wakatime") (hasKey .wakatime "api_key") -}}
# {{- $wakatime_api_key = .wakatime.api_key -}}
# {{- end -}}
# {{- $wakatime_zsh_project_detection := or (env "ZSH_WAKATIME_PROJECT_DETECTION") "true" -}}

# {{- $use_openai := false -}}
# {{- if and (hasKey . "openai") (hasKey .openai "enabled") -}}
Expand Down Expand Up @@ -1051,6 +1052,7 @@ data:
wakatime:
enabled: {{ $use_wakatime }}
api_key: {{ $wakatime_api_key | quote }}
zsh_project_detection: {{ $wakatime_zsh_project_detection }}
workspace:
name: {{ $workspace_name | quote }}
location: {{ $workspace_location | quote }}
Expand Down
1 change: 1 addition & 0 deletions chezmoi/dot_config/shrc/00-dotfiles-export.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export WORKSPACE_REFERENCE_DIR="{{ .workspace.reference_dir }}"
export GIT_COMMIT_GPGSIGN="{{ .git.gpgsign }}"
export WAKATIME_API_KEY="{{ .wakatime.api_key }}"
export OPENAI_API_KEY="{{ .openai.api_key }}"
export ZSH_WAKATIME_PROJECT_DETECTION="{{ .wakatime.zsh_project_detection }}"

GITHUB_TOKEN=${GITHUB_TOKEN:-"{{ .github.token }}"}
GH_TOKEN="${GITHUB_TOKEN}"
Expand Down

0 comments on commit 77a02e1

Please sign in to comment.