Skip to content

Instantly share code, notes, and snippets.

@liks79
Last active December 31, 2020 03:37
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save liks79/6283f854ed4c4e11d2e9 to your computer and use it in GitHub Desktop.
Save liks79/6283f854ed4c4e11d2e9 to your computer and use it in GitHub Desktop.
Run Visual Studio Code in MAC OS zsh terminal.
## from : http://kevgriffin.com/how-to-run-visual-studio-code-from-zsh-on-mac-osx/
function code {
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
}
@yasserjara
Copy link

excelente gracias!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment