Skip to content

Instantly share code, notes, and snippets.

@azu
Created April 30, 2015 04:29
Show Gist options
  • Save azu/d41366bcfd655d03c306 to your computer and use it in GitHub Desktop.
Save azu/d41366bcfd655d03c306 to your computer and use it in GitHub Desktop.
Visual Studio Code from zsh on OS X
# Visual Studio Code
# https://code.visualstudio.com/Docs/setup
function vsc {
if [[ $# = 0 ]]
then
open -a "Visual Studio Code"
else
local argPath="$1"
[[ $1 = /* ]] && argPath="$1" || argPath="$PWD/${1#./}"
open -a "Visual Studio Code" "$argPath"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment