diff --git a/wsl/home/.config/mise/config.toml b/wsl/home/.config/mise/config.toml index 637811de..a1ddac61 100644 --- a/wsl/home/.config/mise/config.toml +++ b/wsl/home/.config/mise/config.toml @@ -13,7 +13,13 @@ GPG_TTY = "{% if env.CI is undefined %}{{ exec(command='tty', cache_key='tty', c # set GITHUB_TOKEN to avoid rate limit while using mise [env.GITHUB_TOKEN] -value = "{% if env.CI is undefined %}{{ exec(command='gh auth token', cache_key='github_token', cache_duration='1 day') }}{% endif %}" +value = """ +{% if env.CI is undefined %}\ + {{ exec(command='gh auth token', cache_key='github_token', cache_duration='1 day') }}\ +{% else %}\ + {{ env.GITHUB_TOKEN }}\ +{% endif %}\ +""" tools = true [tools]