Skip to content

Instantly share code, notes, and snippets.

@Luxcium
Last active January 25, 2024 20:35
Show Gist options
  • Save Luxcium/7357d34622c148f6041842321f315d7a to your computer and use it in GitHub Desktop.
Save Luxcium/7357d34622c148f6041842321f315d7a to your computer and use it in GitHub Desktop.
Generate a folder with VSCode for macOS portable edition when run in an empty folder with internet connection

How to Install Luxcium's Vscode Portable (macOS)

I have made a quick VSCODE-Portable installer just execute the script inside a macOS empty folder to have a working copy of visual studio code portable that is self contained inside that folder (not messing with your main VSCode profile easy to throw away or to keep on a USB stick)

TL;DR

Run this script in an empty folder to install Luxcium's Vscode Portable:

bash <(curl -s   https://gist.githubusercontent.com/Luxcium/7357d34622c148f6041842321f315d7a/raw/a758b82e6818b9b9b664b210228ea93f9314c1b4/luxcium-vscode-portable.sh)

Validate the integrity and signature

validation-process.sh should be: 9e0cf41d314a56c5d04d9a564b8993642cf4f56d5a3f4d4b649d3cd3d4e6d4ca -
url should contain (7357...5d7a-47c1...3d0a/validation-process.sh)

curl -s https://gist.githubusercontent.com/Luxcium/7357d34622c148f6041842321f315d7a/raw/47c1193f663cac9cd2ee87c27633e7e320913d0a/validation-process.sh | shasum -a 256

if true run the script to validate signatures (compare with my twitter):
url should contain (7357...5d7a-47c1...3d0a/validation-process.sh)

bash <(curl -s https://gist.githubusercontent.com/Luxcium/7357d34622c148f6041842321f315d7a/raw/47c1193f663cac9cd2ee87c27633e7e320913d0a/validation-process.sh)

luxcium-vscode-portable.sh should be: 603543787ce9edd3079366d084b0da54db2d66e83d17d11efd34d45f539ac2d1 -
url should contain (7357...5d7a-a758...c1b4/luxcium-vscode-portable.sh)

curl -s https://gist.githubusercontent.com/Luxcium/7357d34622c148f6041842321f315d7a/raw/a758b82e6818b9b9b664b210228ea93f9314c1b4/luxcium-vscode-portable.sh | shasum -a 256 

if true run the script in an empty folder to install Luxcium's Vscode Portable:
url should contain (7357...5d7a-a758...c1b4/luxcium-vscode-portable.sh)

bash <(curl -s   https://gist.githubusercontent.com/Luxcium/7357d34622c148f6041842321f315d7a/raw/a758b82e6818b9b9b664b210228ea93f9314c1b4/luxcium-vscode-portable.sh)

luxcium-vscode-portable.sh should be: 603543787ce9edd3079366d084b0da54db2d66e83d17d11efd34d45f539ac2d1 -

URL: (7357...5d7a-a758...c1b4/luxcium-vscode-portable.sh == 6035...c2d1)

curl -s https://gist.githubusercontent.com/Luxcium/7357d34622c148f6041842321f315d7a/raw/a758b82e6818b9b9b664b210228ea93f9314c1b4/luxcium-vscode-portable.sh | shasum -a 256

luxcium-vscode-portable.sh.asc should be: eeabd7e3d1bce54ff6b49ba0d746917a25ecd11d57eacb872db38f56ae8525f9 -

URL: (7357...5d7a-a758...c1b4/luxcium-vscode-portable.sh.asc == eeab...25f9)

curl -s https://gist.githubusercontent.com/Luxcium/7357d34622c148f6041842321f315d7a/raw/a758b82e6818b9b9b664b210228ea93f9314c1b4/luxcium-vscode-portable.sh.asc | shasum -a 256

validation-process.sh should be: 9e0cf41d314a56c5d04d9a564b8993642cf4f56d5a3f4d4b649d3cd3d4e6d4ca -

URL: (7357...5d7a-47c1...3d0a/validation-process.sh == 9e0c...d4ca)

curl -s https://gist.githubusercontent.com/Luxcium/7357d34622c148f6041842321f315d7a/raw/47c1193f663cac9cd2ee87c27633e7e320913d0a/validation-process.sh | shasum -a 256

MIT LICENSE

Copyright (c) 2019 Benjamin Vincent Kasapoglu (Luxcium)

Permission is hereby granted, free of charge, to all person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ALL KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ALL CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

# Scientia is lux principium✨™
# luxcium-vscode-portable.sh should be: 603543787ce9edd3079366d084b0da54db2d66e83d17d11efd34d45f539ac2d1 -
# URL: (7357...c1b4/luxcium-vscode-portable.sh == 6035...c2d1)
curl -s https://gist.githubusercontent.com/Luxcium/7357d34622c148f6041842321f315d7a/raw/a758b82e6818b9b9b664b210228ea93f9314c1b4/luxcium-vscode-portable.sh | shasum -a 256
# luxcium-vscode-portable.sh.asc should be: eeabd7e3d1bce54ff6b49ba0d746917a25ecd11d57eacb872db38f56ae8525f9 -
# URL: (7357...c1b4/luxcium-vscode-portable.sh.asc == eeab...25f9)
curl -s https://gist.githubusercontent.com/Luxcium/7357d34622c148f6041842321f315d7a/raw/a758b82e6818b9b9b664b210228ea93f9314c1b4/luxcium-vscode-portable.sh.asc | shasum -a 256
# validation-process.sh should be: 9e0cf41d314a56c5d04d9a564b8993642cf4f56d5a3f4d4b649d3cd3d4e6d4ca -
# URL: (7357...3d0a/validation-process.sh == 9e0c...d4ca)
curl -s https://gist.githubusercontent.com/Luxcium/7357d34622c148f6041842321f315d7a/raw/47c1193f663cac9cd2ee87c27633e7e320913d0a/validation-process.sh | shasum -a 256
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
# Scientia is lux principium✨™
# luxcium-vscode-portable.sh should be: 603543787ce9edd3079366d084b0da54db2d66e83d17d11efd34d45f539ac2d1 -
# URL: (7357...c1b4/luxcium-vscode-portable.sh == 6035...c2d1)
curl -s https://gist.githubusercontent.com/Luxcium/7357d34622c148f6041842321f315d7a/raw/a758b82e6818b9b9b664b210228ea93f9314c1b4/luxcium-vscode-portable.sh | shasum -a 256
# luxcium-vscode-portable.sh.asc should be: eeabd7e3d1bce54ff6b49ba0d746917a25ecd11d57eacb872db38f56ae8525f9 -
# URL: (7357...c1b4/luxcium-vscode-portable.sh.asc == eeab...25f9)
curl -s https://gist.githubusercontent.com/Luxcium/7357d34622c148f6041842321f315d7a/raw/a758b82e6818b9b9b664b210228ea93f9314c1b4/luxcium-vscode-portable.sh.asc | shasum -a 256
# validation-process.sh should be: 9e0cf41d314a56c5d04d9a564b8993642cf4f56d5a3f4d4b649d3cd3d4e6d4ca -
# URL: (7357...3d0a/validation-process.sh == 9e0c...d4ca)
curl -s https://gist.githubusercontent.com/Luxcium/7357d34622c148f6041842321f315d7a/raw/47c1193f663cac9cd2ee87c27633e7e320913d0a/validation-process.sh | shasum -a 256
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEH9gTzHl8kCc5abh1Dd0h1YMUSjIFAl2IMVYACgkQDd0h1YMU
SjJOWg/+Kt3mrztDG51OO7+oQns4vx1vSjt78u6J8KwMhgELxmpX0mEXmkIaGAHL
DiegSBJt8C59+zho30EZIvD3D8pKXf5hr4br1aFMLZQiXObUGapN0yEdEAes3kUd
3nxrMrCB89iYMGASD7HnwI6kJ94gj1cMLl4k0+Hrf2y6kFjC5h1H125956pPAslP
E06rr1nULG+4PfTHcPCjxvnCBJIbNhYar0KZ4t1u+UdHPYy8iZMnqfFtPcUqGx6p
oNuJknYQJVSAdTLOBKrIZynKBhaYS2MgdanhNhKVFvA4lWzQs1xOGNUbBa02t76W
ZnUa+qU2rWkHHCKSwxnvOBPUEsiRdkfOzPZV5hKRhD366WW9UFa/b7J1xQCpq4cT
BWw15si+RE8AURLWCwvjaLq2URu63XMsJ18MIaAOJZr14mY6pglgW43HM45LVSIU
aLg2YMlCkeCNiDEp5EeBM7NPBCtNeP9GyCDBB6n/hP6WW1hpAr0TIvw3V9wQ9qjO
soxmivqH/M162czbRSEmIpb6mYXNRC+M85N8TcCDHiLXgH17qjkbQSd2QYSVVQRg
Yg68/PVqt1FbbpmEiWfHYfXukrXKjY6vtnKfuWDNnnXxMyTVIZDacx4GTxCmRTEG
kIIvAHFuYsQPVoTU97J4/Mb0wWSm2LogFF8DIRxvHcLySDAnaoc=
=9ua3
-----END PGP SIGNATURE-----
#!/usr/bin/env /bin/sh
rm -f .DS_Store
this_file="$(basename "$(test -L "$0" && readlink "$0" || echo "$0")")"
in_this_folder="$(ls -A ./)"
if [ -z "$in_this_folder" ] || [ "$this_file" = "$in_this_folder" ]; then
echo ""
echo "🧞‍♀️"
echo 'please wait:'
else
sleep 1
echo "$this_file != $in_this_folder"
echo "ERROR: Not Empty!"
echo "Please run this script in an empty folder."
exit
fi
echo ""
echo "⏱ . . ."
echo 'it will take few minutes'
echo 'tmp' > .gitignore
echo 'cache' >> .gitignore
echo 'Cache' >> .gitignore
echo 'CachedData' >> .gitignore
echo 'GpuCache' >> .gitignore
echo 'node_modules' >> .gitignore
echo 'machineid' >> .gitignore
echo ""
echo "🔨 . . ."
git init
git add .
git commit -qm "first commit visual studio code tribes -- Scientia is lux principium✨™"
echo ""
echo "🔧 . . ."
# echo "🧚🏻‍♀️"
# echo "🧜🏿‍♂️"
# echo ""
# echo ""
# echo "🧚🏽‍♂️"
mkdir -p code-portable-data/tmp && \
echo 'dowloading VSCode-darwin-stable.zip . . . ' && \
curl -LsS https://vscode-update.azurewebsites.net/latest/darwin/stable > code-portable-data/tmp/VSCode-darwin-stable.zip && \
echo 'uziping VSCode-darwin-stable.zip . . . ' && \
unzip -q code-portable-data/tmp/VSCode-darwin-stable.zip && \
echo 'successful uziping of VSCode-darwin-stable.zip' && \
rm code-portable-data/tmp/VSCode-darwin-stable.zip && \
mv Visual\ Studio\ Code.app VisualStudioCode.app && \
echo ""
echo "⛏ . . ."
git add .
git commit -qm "download vscode completed"
# echo ""
# echo "🧚🏽‍♂️"
# echo ""
xattr -dr com.apple.quarantine VisualStudioCode.app
sleep 2
git add .
git commit -m "xattr -dr com.apple.quarantine"
echo ""
echo "🛠 . . ."
mkdir -p code-portable-data/user-data/User/
echo "configuration modificaiton in ./code-portable-data/user-data/..."
echo "{" >"code-portable-data/user-data/User/settings.json";
echo " \"workbench.colorTheme\": \"Pop N' Lock Theme by Luxcium ✨\"," >>"code-portable-data/user-data/User/settings.json";
echo " \"workbench.iconTheme\": \"material-icon-theme\"," >>"code-portable-data/user-data/User/settings.json";
echo " \"workbench.editor.highlightModifiedTabs\": true," >>"code-portable-data/user-data/User/settings.json";
echo " \"editor.showUnused\": true," >>"code-portable-data/user-data/User/settings.json";
echo " \"window.title\": \"\${dirty}\${activeEditorMedium}\${separator}\${rootName}\"," >>"code-portable-data/user-data/User/settings.json";
echo " \"editor.cursorBlinking\": \"phase\",">>"code-portable-data/user-data/User/settings.json";
echo " \"editor.cursorSmoothCaretAnimation\": true,">>"code-portable-data/user-data/User/settings.json";
echo " \"editor.cursorStyle\": \"line\",">>"code-portable-data/user-data/User/settings.json";
echo " \"editor.renderControlCharacters\": true,">>"code-portable-data/user-data/User/settings.json";
echo " \"editor.renderWhitespace\": \"boundary\",">>"code-portable-data/user-data/User/settings.json";
echo " \"editor.rulers\": [">>"code-portable-data/user-data/User/settings.json";
echo " 80,">>"code-portable-data/user-data/User/settings.json";
echo " 120,">>"code-portable-data/user-data/User/settings.json";
echo " 121">>"code-portable-data/user-data/User/settings.json";
echo " ],">>"code-portable-data/user-data/User/settings.json";
echo " \"telemetry.enableCrashReporter\": false,">>"code-portable-data/user-data/User/settings.json";
echo " \"telemetry.enableTelemetry\": false,">>"code-portable-data/user-data/User/settings.json";
echo "}" >>"code-portable-data/user-data/User/settings.json";
echo ""
echo " ✨ . . .\nUser/settings.json -> workbench.colorTheme: Pop N Lock Theme by Luxcium ✨,"
echo " ✨ . . .\nUser/settings.json -> workbench.iconTheme: material-icon-theme,"
echo " ✨ . . .\nUser/settings.json -> workbench.editor.highlightModifiedTabs: true,"
echo " ✨ . . .\nUser/settings.json -> editor.showUnused: true,"
echo " ✨ . . .\nUser/settings.json -> window.title: \${dirty}\${activeEditorMedium}\${separator}\${rootName},"
echo " ✨ . . .\nUser/settings.json -> editor.cursorBlinking: phase,"
echo " ✨ . . .\nUser/settings.json -> editor.cursorSmoothCaretAnimation: true,"
echo " ✨ . . .\nUser/settings.json -> editor.cursorStyle: line,"
echo " ✨ . . .\nUser/settings.json -> editor.renderControlCharacters: true,"
echo " ✨ . . .\nUser/settings.json -> editor.renderWhitespace: boundary,"
echo " ✨ . . .\nUser/settings.json -> editor.rulers: [80,120,121],"
echo " ✨ . . .\nUser/settings.json -> telemetry.enableCrashReporter: false,"
echo " ✨ . . .\nUser/settings.json -> telemetry.enableTelemetry: false,"
echo ""
git add .
git commit -qm "ready includes modif. to settings.json"
# ./VisualStudioCode.app/Contents/Resources/app/bin/code --install-extension && \
# ./VisualStudioCode.app/Contents/Resources/app/bin/code --enable-proposed-api && \
echo ""
echo "📦 📕 . . ."
./VisualStudioCode.app/Contents/Resources/app/bin/code --install-extension ms-vscode.typescript-javascript-grammar && \
./VisualStudioCode.app/Contents/Resources/app/bin/code --enable-proposed-api ms-vscode.typescript-javascript-grammar
echo ""
echo "📦 🐲 . . ."
./VisualStudioCode.app/Contents/Resources/app/bin/code --install-extension luxcium.pop-n-lock-theme-vscode&& \
./VisualStudioCode.app/Contents/Resources/app/bin/code --enable-proposed-api luxcium.pop-n-lock-theme-vscode
git add .
git commit -qm "ready for first start after install-extension"
echo ""
echo "🧞‍♂️"
echo ""
echo 'starting VisualStudioCode.app for the first time'
./VisualStudioCode.app/Contents/Resources/app/bin/code -v
./VisualStudioCode.app/Contents/Resources/app/bin/code
sleep 30
git add .
git commit -qm "first start"
# Visual Studio Code 1.38.1
#
# Usage: code [options][paths...]
#
# To read from stdin, append '-' (e.g. 'ps aux | grep code | code -')
#
# Options
# -d --diff <file> <file> Compare two files with each other.
# -a --add <folder> Add folder(s) to the last active window.
# -g --goto <file:line[:character]> Open a file at the path on the specified line and character position.
# -n --new-window Force to open a new window.
# -r --reuse-window Force to open a file or folder in an already opened window.
# -w --wait Wait for the files to be closed before returning.
# --locale <locale> The locale to use (e.g. en-US or zh-TW).
# --user-data-dir <dir> Specifies the directory that user data is kept in. Can be used to open multiple distinct instances of Code.
# -v --version Print version.
# -h --help Print usage.
# --telemetry Shows all telemetry events which VS code collects.
# --folder-uri <uri> Opens a window with given folder uri(s)
# --file-uri <uri> Opens a window with given file uri(s)
#
# Extensions Management
# --extensions-dir <dir> Set the root path for extensions.
# --list-extensions List the installed extensions.
# --show-versions Show versions of installed extensions, when using --list-extension.
# --category Filters installed extensions by provided category, when using --list-extension.
# --install-extension <extension-id | path-to-vsix> Installs or updates the extension. Use `--force` argument to avoid prompts.
# --uninstall-extension <extension-id> Uninstalls an extension.
# --enable-proposed-api <extension-id> Enables proposed API features for extensions. Can receive one or more extension IDs to enable individually.
#
# Troubleshooting
# --verbose Print verbose output (implies --wait).
# --log <level> Log level to use. Default is 'info'. Allowed values are 'critical', 'error', 'warn', 'info', 'debug', 'trace', 'off'.
# -s --status Print process usage and diagnostics information.
# --prof-startup Run CPU profiler during startup
# --disable-extensions Disable all installed extensions.
# --disable-extension <extension-id> Disable an extension.
# --inspect-extensions <port> Allow debugging and profiling of extensions. Check the developer tools for the connection URI.
# --inspect-brk-extensions <port> Allow debugging and profiling of extensions with the extension host being paused after start. Check the developer tools for the connection URI.
# --disable-gpu Disable GPU hardware acceleration.
# --max-memory Max memory size for a window (in Mbytes).
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
#!/usr/bin/env /bin/sh
rm -f .DS_Store
this_file="$(basename "$(test -L "$0" && readlink "$0" || echo "$0")")"
in_this_folder="$(ls -A ./)"
if [ -z "$in_this_folder" ] || [ "$this_file" = "$in_this_folder" ]; then
echo ""
echo "🧞‍♀️"
echo 'please wait:'
else
sleep 1
echo "$this_file != $in_this_folder"
echo "ERROR: Not Empty!"
echo "Please run this script in an empty folder."
exit
fi
echo ""
echo "⏱ . . ."
echo 'it will take few minutes'
echo 'tmp' > .gitignore
echo 'cache' >> .gitignore
echo 'Cache' >> .gitignore
echo 'CachedData' >> .gitignore
echo 'GpuCache' >> .gitignore
echo 'node_modules' >> .gitignore
echo 'machineid' >> .gitignore
echo ""
echo "🔨 . . ."
git init
git add .
git commit -qm "first commit visual studio code tribes -- Scientia is lux principium✨™"
echo ""
echo "🔧 . . ."
# echo "🧚🏻‍♀️"
# echo "🧜🏿‍♂️"
# echo ""
# echo ""
# echo "🧚🏽‍♂️"
mkdir -p code-portable-data/tmp && \
echo 'dowloading VSCode-darwin-stable.zip . . . ' && \
curl -LsS https://vscode-update.azurewebsites.net/latest/darwin/stable > code-portable-data/tmp/VSCode-darwin-stable.zip && \
echo 'uziping VSCode-darwin-stable.zip . . . ' && \
unzip -q code-portable-data/tmp/VSCode-darwin-stable.zip && \
echo 'successful uziping of VSCode-darwin-stable.zip' && \
rm code-portable-data/tmp/VSCode-darwin-stable.zip && \
mv Visual\ Studio\ Code.app VisualStudioCode.app && \
echo ""
echo "⛏ . . ."
git add .
git commit -qm "download vscode completed"
# echo ""
# echo "🧚🏽‍♂️"
# echo ""
xattr -dr com.apple.quarantine VisualStudioCode.app
sleep 2
git add .
git commit -m "xattr -dr com.apple.quarantine"
echo ""
echo "🛠 . . ."
mkdir -p code-portable-data/user-data/User/
echo "configuration modificaiton in ./code-portable-data/user-data/..."
echo "{" >"code-portable-data/user-data/User/settings.json";
echo " \"workbench.colorTheme\": \"Pop N' Lock Theme by Luxcium ✨\"," >>"code-portable-data/user-data/User/settings.json";
echo " \"workbench.iconTheme\": \"material-icon-theme\"," >>"code-portable-data/user-data/User/settings.json";
echo " \"workbench.editor.highlightModifiedTabs\": true," >>"code-portable-data/user-data/User/settings.json";
echo " \"editor.showUnused\": true," >>"code-portable-data/user-data/User/settings.json";
echo " \"window.title\": \"\${dirty}\${activeEditorMedium}\${separator}\${rootName}\"," >>"code-portable-data/user-data/User/settings.json";
echo " \"editor.cursorBlinking\": \"phase\",">>"code-portable-data/user-data/User/settings.json";
echo " \"editor.cursorSmoothCaretAnimation\": true,">>"code-portable-data/user-data/User/settings.json";
echo " \"editor.cursorStyle\": \"line\",">>"code-portable-data/user-data/User/settings.json";
echo " \"editor.renderControlCharacters\": true,">>"code-portable-data/user-data/User/settings.json";
echo " \"editor.renderWhitespace\": \"boundary\",">>"code-portable-data/user-data/User/settings.json";
echo " \"editor.rulers\": [">>"code-portable-data/user-data/User/settings.json";
echo " 80,">>"code-portable-data/user-data/User/settings.json";
echo " 120,">>"code-portable-data/user-data/User/settings.json";
echo " 121">>"code-portable-data/user-data/User/settings.json";
echo " ],">>"code-portable-data/user-data/User/settings.json";
echo " \"telemetry.enableCrashReporter\": false,">>"code-portable-data/user-data/User/settings.json";
echo " \"telemetry.enableTelemetry\": false,">>"code-portable-data/user-data/User/settings.json";
echo "}" >>"code-portable-data/user-data/User/settings.json";
echo ""
echo " ✨ . . .\nUser/settings.json -> workbench.colorTheme: Pop N Lock Theme by Luxcium ✨,"
echo " ✨ . . .\nUser/settings.json -> workbench.iconTheme: material-icon-theme,"
echo " ✨ . . .\nUser/settings.json -> workbench.editor.highlightModifiedTabs: true,"
echo " ✨ . . .\nUser/settings.json -> editor.showUnused: true,"
echo " ✨ . . .\nUser/settings.json -> window.title: \${dirty}\${activeEditorMedium}\${separator}\${rootName},"
echo " ✨ . . .\nUser/settings.json -> editor.cursorBlinking: phase,"
echo " ✨ . . .\nUser/settings.json -> editor.cursorSmoothCaretAnimation: true,"
echo " ✨ . . .\nUser/settings.json -> editor.cursorStyle: line,"
echo " ✨ . . .\nUser/settings.json -> editor.renderControlCharacters: true,"
echo " ✨ . . .\nUser/settings.json -> editor.renderWhitespace: boundary,"
echo " ✨ . . .\nUser/settings.json -> editor.rulers: [80,120,121],"
echo " ✨ . . .\nUser/settings.json -> telemetry.enableCrashReporter: false,"
echo " ✨ . . .\nUser/settings.json -> telemetry.enableTelemetry: false,"
echo ""
git add .
git commit -qm "ready includes modif. to settings.json"
# ./VisualStudioCode.app/Contents/Resources/app/bin/code --install-extension && \
# ./VisualStudioCode.app/Contents/Resources/app/bin/code --enable-proposed-api && \
echo ""
echo "📦 📕 . . ."
./VisualStudioCode.app/Contents/Resources/app/bin/code --install-extension ms-vscode.typescript-javascript-grammar && \
./VisualStudioCode.app/Contents/Resources/app/bin/code --enable-proposed-api ms-vscode.typescript-javascript-grammar
echo ""
echo "📦 🐲 . . ."
./VisualStudioCode.app/Contents/Resources/app/bin/code --install-extension luxcium.pop-n-lock-theme-vscode&& \
./VisualStudioCode.app/Contents/Resources/app/bin/code --enable-proposed-api luxcium.pop-n-lock-theme-vscode
git add .
git commit -qm "ready for first start after install-extension"
echo ""
echo "🧞‍♂️"
echo ""
echo 'starting VisualStudioCode.app for the first time'
./VisualStudioCode.app/Contents/Resources/app/bin/code -v
./VisualStudioCode.app/Contents/Resources/app/bin/code
sleep 30
git add .
git commit -qm "first start"
# Visual Studio Code 1.38.1
#
# Usage: code [options][paths...]
#
# To read from stdin, append '-' (e.g. 'ps aux | grep code | code -')
#
# Options
# -d --diff <file> <file> Compare two files with each other.
# -a --add <folder> Add folder(s) to the last active window.
# -g --goto <file:line[:character]> Open a file at the path on the specified line and character position.
# -n --new-window Force to open a new window.
# -r --reuse-window Force to open a file or folder in an already opened window.
# -w --wait Wait for the files to be closed before returning.
# --locale <locale> The locale to use (e.g. en-US or zh-TW).
# --user-data-dir <dir> Specifies the directory that user data is kept in. Can be used to open multiple distinct instances of Code.
# -v --version Print version.
# -h --help Print usage.
# --telemetry Shows all telemetry events which VS code collects.
# --folder-uri <uri> Opens a window with given folder uri(s)
# --file-uri <uri> Opens a window with given file uri(s)
#
# Extensions Management
# --extensions-dir <dir> Set the root path for extensions.
# --list-extensions List the installed extensions.
# --show-versions Show versions of installed extensions, when using --list-extension.
# --category Filters installed extensions by provided category, when using --list-extension.
# --install-extension <extension-id | path-to-vsix> Installs or updates the extension. Use `--force` argument to avoid prompts.
# --uninstall-extension <extension-id> Uninstalls an extension.
# --enable-proposed-api <extension-id> Enables proposed API features for extensions. Can receive one or more extension IDs to enable individually.
#
# Troubleshooting
# --verbose Print verbose output (implies --wait).
# --log <level> Log level to use. Default is 'info'. Allowed values are 'critical', 'error', 'warn', 'info', 'debug', 'trace', 'off'.
# -s --status Print process usage and diagnostics information.
# --prof-startup Run CPU profiler during startup
# --disable-extensions Disable all installed extensions.
# --disable-extension <extension-id> Disable an extension.
# --inspect-extensions <port> Allow debugging and profiling of extensions. Check the developer tools for the connection URI.
# --inspect-brk-extensions <port> Allow debugging and profiling of extensions with the extension host being paused after start. Check the developer tools for the connection URI.
# --disable-gpu Disable GPU hardware acceleration.
# --max-memory Max memory size for a window (in Mbytes).
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEH9gTzHl8kCc5abh1Dd0h1YMUSjIFAl2IJL4ACgkQDd0h1YMU
SjJybhAAop7R5p6+AEoZCokegy8PUlsITMrDxQmSKkmFpsvvvh43jP+c7la3GR7X
2cZM+Nm6kyOHbwSDWDNH1gB+Yr3KuZ//dYsn+yGkECHEygnm60twkTo+4JKZonz8
PW4MWPC0RrHFk0KdL77FugA7BmcGYSWkzskHm+9tEiADU90wMPtg0k4obXeawtE6
pb2fQVtWEDp8Q6NlsC7WvdgOoVhyzWWbPnDHxvoVqrq403+QK6P1raxBJYd77+FU
bfQKmCxZY9Za9z6H0Psjijsd2FS/xx7HIckFxrW3U+jlAqMTL8y1JfvvCUS/97pT
hcUTww13UvHICy6BvGIUPC0rK4qDgAu9B8+nABNtzjLv47WspboN9QggZdfJ1Ghq
CoMzQ9KYYzUj/r82yGNK2w4bF9LiLe7vrZLMV1SoP89SzUwCyb7C8P0BQrokCpbi
9fcuCnGCVfY8wDtV7ASlwR26DIwxyTJVIZe8Vh59i0YM7DjSIH/vcy1jKew40mZc
0Cmwz1vaGTmltnbxovwmjkQ4RnbbIwZXyokcHP+aaJXSlkiJICEkCf1+pJz/GfER
LVFogfFtH/xlprEzHl4/+XskdFDVYSS4Oxdj7d5+c053XiY5rv6W5l/wR5vrExFp
q4N57MqqCxNPrECJkn2YtdAqEYJrC2nPFtCcTt/mHOxWkf+4yqQ=
=lImQ
-----END PGP SIGNATURE-----
#!/usr/bin/env /bin/sh
echo ""
echo "before using script validate if:"
echo "curl -s https://gist.githubusercontent.com/Luxcium/7357d34622c148f6041842321f315d7a/raw/a758b82e6818b9b9b664b210228ea93f9314c1b4/luxcium-vscode-portable.sh | shasum -a 256"
echo "gives:603543787ce9edd3079366d084b0da54db2d66e83d17d11efd34d45f539ac2d1 -"
if test "$(curl -s https://gist.githubusercontent.com/Luxcium/7357d34622c148f6041842321f315d7a/raw/a758b82e6818b9b9b664b210228ea93f9314c1b4/luxcium-vscode-portable.sh | shasum -a 256)" = "603543787ce9edd3079366d084b0da54db2d66e83d17d11efd34d45f539ac2d1 -" ;then
echo "TRUE: [$(curl -s https://gist.githubusercontent.com/Luxcium/7357d34622c148f6041842321f315d7a/raw/a758b82e6818b9b9b664b210228ea93f9314c1b4/luxcium-vscode-portable.sh | shasum -a 256)]"
else
echo "ERROR: [$(curl -s https://gist.githubusercontent.com/Luxcium/7357d34622c148f6041842321f315d7a/raw/a758b82e6818b9b9b664b210228ea93f9314c1b4/luxcium-vscode-portable.sh | shasum -a 256)]"
fi
echo ""
echo ""
echo "before using script validate if:"
echo "curl -s https://gist.githubusercontent.com/Luxcium/7357d34622c148f6041842321f315d7a/raw/a758b82e6818b9b9b664b210228ea93f9314c1b4/luxcium-vscode-portable.sh.asc | shasum -a 256"
echo "gives: eeabd7e3d1bce54ff6b49ba0d746917a25ecd11d57eacb872db38f56ae8525f9 -"
if test "$(curl -s https://gist.githubusercontent.com/Luxcium/7357d34622c148f6041842321f315d7a/raw/a758b82e6818b9b9b664b210228ea93f9314c1b4/luxcium-vscode-portable.sh.asc | shasum -a 256)" = "eeabd7e3d1bce54ff6b49ba0d746917a25ecd11d57eacb872db38f56ae8525f9 -" ;then
echo "TRUE: [$(curl -s https://gist.githubusercontent.com/Luxcium/7357d34622c148f6041842321f315d7a/raw/a758b82e6818b9b9b664b210228ea93f9314c1b4/luxcium-vscode-portable.sh.asc | shasum -a 256)]"
else
echo "ERROR: [$(curl -s https://gist.githubusercontent.com/Luxcium/7357d34622c148f6041842321f315d7a/raw/a758b82e6818b9b9b664b210228ea93f9314c1b4/luxcium-vscode-portable.sh.asc | shasum -a 256)]"
fi
echo ""
echo ""
echo "before using script validate:"
echo "curl -s https://gist.githubusercontent.com/Luxcium/7357d34622c148f6041842321f315d7a/raw/a758b82e6818b9b9b664b210228ea93f9314c1b4/luxcium-vscode-portable.sh.asc | gpg --verify"
curl -s https://gist.githubusercontent.com/Luxcium/7357d34622c148f6041842321f315d7a/raw/a758b82e6818b9b9b664b210228ea93f9314c1b4/luxcium-vscode-portable.sh.asc | gpg --verify
echo ""
echo "before using script validate if:"
echo "gpg --fingerprint 1FD813CC797C90273969B8750DDD21D583144A32 | grep 1FD8 | xxd -r -p | base64"
echo "gives: H9gTzHl8kCc5abh1Dd0h1YMUSjI="
if test "$(gpg --fingerprint 1FD813CC797C90273969B8750DDD21D583144A32 | grep 1FD8 | xxd -r -p | base64)" = "H9gTzHl8kCc5abh1Dd0h1YMUSjI=" ;then
echo "TRUE: [$(gpg --fingerprint 1FD813CC797C90273969B8750DDD21D583144A32 | grep 1FD8 | xxd -r -p | base64)]"
else
echo "ERROR: [$(gpg --fingerprint 1FD813CC797C90273969B8750DDD21D583144A32 | grep 1FD8 | xxd -r -p | base64)]"
fi
echo ""
echo "(as on my twitter account: https://twitter.com/Luxcium/status/1115888051161575430)"
open "https://twitter.com/Luxcium/status/1115888051161575430"
echo ""
echo "Identicon image from http://identicon.net/ (sha-512)(hex)(H9gTzHl8kCc5abh1Dd0h1YMUSjI=)"
echo ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment