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:
parent
b1c5ad720d
commit
b83a826eff
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue