Skip to content

Instantly share code, notes, and snippets.

@Memphizzz
Created February 14, 2018 00:25
Show Gist options
  • Save Memphizzz/daf91bd4df76cfa44177a64a7515bd66 to your computer and use it in GitHub Desktop.
Save Memphizzz/daf91bd4df76cfa44177a64a7515bd66 to your computer and use it in GitHub Desktop.
function FileExists --argument-names path
if test -e $path
return 0
else
return 1
end
end
function WTF
set file '/cygdrive/c/Program Files/Microsoft VS Code/Code.exe'
if FileExists $file
eval $file $argv[1]
else
echo "Not found!"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment