Skip to content

Commit

Permalink
fix(wsl/home/.config/mise/config.toml): use cache for exec templates
Browse files Browse the repository at this point in the history
  • Loading branch information
risu729 committed Dec 16, 2024
1 parent fc8dd1a commit f9bc36d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wsl/home/.config/mise/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ min_version = "2024.12.8"
# disable bat paging
BAT_PAGING = "never"
# gpg requires tty
GPG_TTY={value="{{ exec(command='tty') }}", tools=true}
GPG_TTY={value="{{ exec(command='tty', cache_key='tty', cache_duration='1 week') }}", tools=true}
# set GITHUB_TOKEN to avoid rate limit while using mise
GITHUB_TOKEN={value="{{ exec(command='gh auth token') }}", tools=true}
GITHUB_TOKEN={value="{{ exec(command='gh auth token', cache_key='github_token', cache_duration='1 day') }}", tools=true}

[tools]
# language tools
Expand Down

0 comments on commit f9bc36d

Please sign in to comment.