1
0
Fork 0
mirror of https://github.com/ryanccn/flake.git synced 2025-12-06 16:10:45 +01:00

fix(fish): use conditional or properly

This commit is contained in:
Ryan Cao 2023-08-17 12:11:26 +08:00
parent b1c5ad720d
commit b83a826eff
Signed by: ryanccn
SSH key fingerprint: SHA256:NtP/BlVhoQq4xU6BEcZeT8nIPvHntkJ3lIc2yB+F09E

View file

@ -19,7 +19,7 @@ in {
''; '';
code = '' 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]" open -a "Visual Studio Code" "$argv[1]"
else else
"/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code" $argv "/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code" $argv