Created
February 14, 2018 00:25
-
-
Save Memphizzz/daf91bd4df76cfa44177a64a7515bd66 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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