From 477d4078d20689dab7022fd09b71f4fb0fd498d0 Mon Sep 17 00:00:00 2001 From: Risu <79110363+risu729@users.noreply.github.com> Date: Tue, 17 Dec 2024 08:32:38 +0900 Subject: [PATCH] Revert "fix(wsl/home/.config/mise/config.toml): use cache for exec templates" This reverts commit 0fcc7c9b03b873295a0b21140c5b5814a510b37a. --- tasks.toml | 2 +- wsl/home/.bashrc | 5 ----- wsl/home/.config/mise/config.toml | 4 ++-- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/tasks.toml b/tasks.toml index 7eb63c36..5133008d 100644 --- a/tasks.toml +++ b/tasks.toml @@ -146,7 +146,7 @@ hide = true ["worker:dev"] depends = ["buni:worker"] dir = "worker" -run = "bun run wrangler dev ${{ exec(command='mise run worker:wrangler-args') }]" +run = "args=$(mise run worker:wrangler-args) && bun run wrangler dev $args" ["worker:test"] depends = ["buni:worker"] diff --git a/wsl/home/.bashrc b/wsl/home/.bashrc index 6dbe79c5..bc9a6648 100644 --- a/wsl/home/.bashrc +++ b/wsl/home/.bashrc @@ -123,8 +123,3 @@ gcd() { root=$(ghq root) [[ -n ${dir} ]] && cd "${root}/${dir}" || return 1 } - - -# gpg -GPG_TTY=$(tty) -export GPG_TTY diff --git a/wsl/home/.config/mise/config.toml b/wsl/home/.config/mise/config.toml index d5142d67..1cdd805c 100644 --- a/wsl/home/.config/mise/config.toml +++ b/wsl/home/.config/mise/config.toml @@ -7,9 +7,9 @@ min_version = "2024.12.8" # disable bat paging BAT_PAGING = "never" # gpg requires tty -GPG_TTY={value="{{ exec(command='tty', cache_key='tty', cache_duration='1 week') }}", tools=true} +GPG_TTY={value="{{ exec(command='tty') }}", tools=true} # set GITHUB_TOKEN to avoid rate limit while using mise -GITHUB_TOKEN={value="{{ exec(command='gh auth token', cache_key='github_token', cache_duration='1 day') }}", tools=true} +GITHUB_TOKEN={value="{{ exec(command='gh auth token') }}", tools=true} [tools] # language tools