Last active
February 17, 2022 11:29
-
-
Save yongjulejule/9f324b144f019aa0e8b5710adea9186f to your computer and use it in GitHub Desktop.
vscode autoinstall script in 42school
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
#!/bin/bash | |
FLAG="$HOME/goinfre/Applications/VSCode-darwin-universal.zip" | |
if [ ! -e "$FLAG" ]; then | |
mkdir -p $HOME/goinfre/Applications | |
curl -L -o $FLAG https://code.visualstudio.com/sha/download\?build\=stable\&os\=darwin-universal | |
open $FLAG | |
else | |
echo "already downloaded" | |
fi |
사용법: 해당 파일을 /path/to/file
에 저장하고
~/.zprofile
에 bash /path/to/file
추가
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
2022-02-16 업데이트 -> vscode 최신버전으로 다운받도록