From 007a104ef390e8664ac306e572c970ffb799e8bd Mon Sep 17 00:00:00 2001 From: imbytecat Date: Wed, 15 Apr 2026 16:54:03 +0800 Subject: [PATCH] =?UTF-8?q?feat(fish):=20=E6=B7=BB=E5=8A=A0=20VS=20Code=20?= =?UTF-8?q?code=20=E5=91=BD=E4=BB=A4=E5=88=B0=20PATH=EF=BC=88=E4=BB=85=20m?= =?UTF-8?q?acOS=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/shell/fish.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/home/shell/fish.nix b/home/shell/fish.nix index 4458345..ee1622c 100644 --- a/home/shell/fish.nix +++ b/home/shell/fish.nix @@ -1,4 +1,9 @@ -{ config, ... }: +{ + config, + pkgs, + lib, + ... +}: let envTpl = "${config.xdg.configHome}/op-env/env.tpl"; @@ -37,6 +42,7 @@ in interactiveShellInit = '' set -g fish_greeting fish_add_path $HOME/go/bin $HOME/.bun/bin + ${lib.optionalString pkgs.stdenv.isDarwin ''fish_add_path "/Applications/Visual Studio Code.app/Contents/Resources/app/bin"''} # 双击 Escape 在命令前插入 sudo bind \e\e 'fish_commandline_prepend sudo'