From ba7e0bb7af3369adbab731c07351cfa19ed6a57e Mon Sep 17 00:00:00 2001 From: imbytecat Date: Wed, 15 Apr 2026 03:43:26 +0800 Subject: [PATCH] =?UTF-8?q?feat(fish):=20=E6=94=AF=E6=8C=81=20Windows=20Te?= =?UTF-8?q?rminal=20=E6=96=B0=E6=A0=87=E7=AD=BE=E9=A1=B5=E4=BF=9D=E6=8C=81?= =?UTF-8?q?=E5=BD=93=E5=89=8D=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/shell/fish.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/home/shell/fish.nix b/home/shell/fish.nix index 3baf189..e374ac7 100644 --- a/home/shell/fish.nix +++ b/home/shell/fish.nix @@ -47,6 +47,13 @@ in alias pbpaste "powershell.exe -noprofile -c Get-Clipboard" end + # Windows Terminal: emit OSC 9;9 so new tab/pane opens in same directory + function __wt_osc9_9 --on-variable PWD + if test -n "$WT_SESSION" + printf "\e]9;9;%s\e\\" (wslpath -w "$PWD") + end + end + # 1Password → env vars (cached locally, no network on shell start) # Startup only sources the cache; run op-env-refresh manually to fetch/update. # Auth via OP_SERVICE_ACCOUNT_TOKEN (set it in ~/.config/fish/local.fish)