-
Notifications
You must be signed in to change notification settings - Fork 0
/
sync-up
executable file
·23 lines (18 loc) · 925 Bytes
/
sync-up
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# Sublime
# cp /Users/justin/Library/Application\ Support/Sublime\ Text\ 3/Packages/User/Package\ Control.sublime-settings ~/dotfiles
# VS Code
cp /Users/justin/Library/Application\ Support/Code/User/settings.json ~/dotfiles/vs-code
cp /Users/justin/Library/Application\ Support/Code/User/keybindings.json ~/dotfiles/vs-code
cp /Users/justin/.gitconfig ~/dotfiles/.gitconfig
cp /Users/justin/.gitignore_global ~/dotfiles/.gitignore_global
cp /Users/justin/.git-commit-template ~/dotfiles/.git-commit-template
for file in $(pwd)/vs-code/snippets/*.code-snippets; do
cp $file /Users/justin/Library/Application\ Support/Code/User/snippets/
done
# keep a list of current VS Code extensions
cat ~/.vscode/extensions/extensions.json | jq > ~/dotfiles/vs-code/extensions.json
# Sync devdocs.io settings
if [[ -e ~/Downloads/devdocs.json ]]; then
cat ~/Downloads/devdocs.json | jq > ~/dotfiles/devdocs.json
fi