Last active
March 3, 2017 15:58
-
-
Save guillaumemolter/b7129efafb3640a7adf1a0eb1e1606cc to your computer and use it in GitHub Desktop.
Syncing Visual Code extensions
This file contains hidden or 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 | |
#Update this with your own path. Mine is in dropbox because I use Tom McFarlin's trick to sync https://tommcfarlin.com/sharing-visual-studio-code-settings/ | |
CODE_PREFS_PATH='/Users/guillaumemolter/Dropbox/Apps/Code/User/extensions.conf' | |
EXTENSIONS=`cat $CODE_PREFS_PATH` | |
for EXTENSION in ${EXTENSIONS[@]} | |
do | |
code --install-extension $EXTENSION | |
done | |
# then add to your .bash_profile : | |
# alias code-ext-list="code --list-extensions > /Users/guillaumemolter/Dropbox/Apps/Code/User/extensions.conf" | |
# alias code-ext-sync="/Users/guillaumemolter/Dropbox/Apps/Code/User/code-sync-extensions.sh" | |
# | |
# Additionnaly you can add a cronjob or launchd deamon to auto sync everyday |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment