From b83a826effbbc4cb87cba39ad5bc812a81510d6a Mon Sep 17 00:00:00 2001 From: Ryan Cao <70191398+ryanccn@users.noreply.github.com> Date: Thu, 17 Aug 2023 12:11:26 +0800 Subject: [PATCH] fix(fish): use conditional or properly --- programs/fish.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/fish.nix b/programs/fish.nix index f9e9262..12141aa 100644 --- a/programs/fish.nix +++ b/programs/fish.nix @@ -19,7 +19,7 @@ in { ''; code = '' - if test -d "$argv[1]" or test -f "$argv[1]" + 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