From 5cf5ed65b7eed136be8932e4461a11acd178c6d1 Mon Sep 17 00:00:00 2001 From: Ryan Cao <70191398+ryanccn@users.noreply.github.com> Date: Mon, 4 Sep 2023 22:34:45 +0800 Subject: [PATCH] fix(fish): resolve `code` binary dynamically --- programs/fish.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/fish.nix b/programs/fish.nix index 12141aa..3e2c8d2 100644 --- a/programs/fish.nix +++ b/programs/fish.nix @@ -22,7 +22,7 @@ in { if test -d "$argv[1]" -o -f "$argv[1]" open -a "Visual Studio Code" "$argv[1]" else - "/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code" $argv + command code $argv end ''; };