Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added VSCode settings and extensions backup/reinstall, pip3 backup. #205

Merged
merged 22 commits into from
Jan 7, 2019
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
8d087b2
#200 added gitpython to setup.py
AlexanderProd Dec 14, 2018
673b3a3
Merge branch 'master' of https://github.com/alichtman/shallow-backup
AlexanderProd Dec 14, 2018
b08c6c7
added ~./vscode folder for vscode extensions
AlexanderProd Dec 22, 2018
34996d7
added vscode settings backup
AlexanderProd Dec 22, 2018
cb37095
Merge branch 'master' of https://github.com/alichtman/shallow-backup
AlexanderProd Jan 5, 2019
0cbf207
added vscode settings backup
AlexanderProd Jan 5, 2019
ca4aa4d
removed sync_local_settings from beeing backuped
AlexanderProd Jan 5, 2019
cdd837c
removed .vscode folder from backup
AlexanderProd Jan 5, 2019
9a2786f
removed .vscode folder from backup
AlexanderProd Jan 5, 2019
ef49f49
Update compatibility.py
AlexanderProd Jan 5, 2019
514b56e
fixed indent
AlexanderProd Jan 5, 2019
d7cb57e
fixed indent in compatibility.py
AlexanderProd Jan 5, 2019
eea5012
vscode configs are saved to dedicated folder
AlexanderProd Jan 5, 2019
99f9e94
vscode configs are saved to dedicated folder
AlexanderProd Jan 5, 2019
b5242c2
added pip3 backup
AlexanderProd Jan 6, 2019
af0532d
added vscode extensions backup
AlexanderProd Jan 6, 2019
049f273
updated README for VSCode and pip3
AlexanderProd Jan 6, 2019
470577e
removed trailing whitespace in backup.py
AlexanderProd Jan 6, 2019
b5397bc
added .DS_Store to gitignore
AlexanderProd Jan 6, 2019
ff83611
added pip3 reinstall
AlexanderProd Jan 6, 2019
97b65f0
changed vscode extensions file name
AlexanderProd Jan 7, 2019
e799aed
added vscode extensions restore
AlexanderProd Jan 7, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions shallow_backup/compatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,27 @@ def get_config_paths():
if "darwin" == get_os_name():
sublime2_path = os.path.join(get_home(), "Library/Application Support/Sublime Text 2")
sublime3_path = os.path.join(get_home(), "Library/Application Support/Sublime Text 3")
vscode_path = os.path.join(get_home(), "Library/Application Support/Code")
atom_path = os.path.join(get_home(), ".atom")
terminal_path = os.path.join(get_home(), "Library/Preferences/com.apple.Terminal.plist")

return {
sublime2_path: "sublime2",
sublime3_path: "sublime3",
vscode_path: "vscode",
atom_path: "atom",
terminal_path: "terminal_plist"
}
else:
sublime2_path = "/.config/sublime-text-2"
sublime3_path = "/.config/sublime-text-3"
vscode_path = "/.config/Code"
atom_path = os.path.join(get_home(), ".atom")
return {
# TODO: Double check these paths. Not sure these are right.
sublime2_path: "sublime2",
sublime3_path: "sublime3",
vscode_path: "vscode",
atom_path: "atom"
}

Expand Down
3 changes: 2 additions & 1 deletion shallow_backup/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def get_default_config():
],
"dotfolders" : [
".ssh",
".vim"
".vim",
".vscode"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This folder doesn't actually hold any configuration files and doesn't really belong in this section, imo.

On my machine, it stores the downloaded extensions, and I'm not sure we should be backing up the actual source code for the extensions when we should be able to reinstall them.

See comment on PR for more details.

Note: I'm not thrilled with the Sublime backup solution I have at the moment. It backs up a ton of dead weight, and I don't want to establish that as the status quo. The initial goal of this project was to compress the backup size as much as possible. We should only back up the settings and extensions for VSCode / Sublime / Atom / etc.

],
"default-gitignore": [
"dotfiles/.ssh",
Expand Down