Skip to content

Commit

Permalink
Merge b5242c2 into 9f8f9d4
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderProd committed Jan 6, 2019
2 parents 9f8f9d4 + b5242c2 commit 56d3142
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions shallow_backup/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ def backup_packages(backup_path, skip=False):
dest = "{}/pip_list.txt".format(backup_path)
run_cmd_write_stdout(command, dest)

# pip3
print_pkg_mgr_backup("pip3")
command = "pip3 list --format=freeze"
dest = "{}/pip_list.txt".format(backup_path)
run_cmd_write_stdout(command, dest)

# npm
print_pkg_mgr_backup("npm")
command = "npm ls --global --parseable=true --depth=0"
Expand Down
12 changes: 12 additions & 0 deletions shallow_backup/compatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,35 @@ 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_1 = os.path.join(get_home(), "Library/Application Support/Code/User/settings.json")
vscode_path_2 = os.path.join(get_home(), "Library/Application Support/Code/User/Snippets")
vscode_path_3 = os.path.join(get_home(), "Library/Application Support/Code/User/keybindings.json")
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_1: "vscode/settings",
vscode_path_2: "vscode/Snippets",
vscode_path_3: "vscode/keybindings",
atom_path: "atom",
terminal_path: "terminal_plist"
}
else:
sublime2_path = "/.config/sublime-text-2"
sublime3_path = "/.config/sublime-text-3"
vscode_path_1 = "/.config/Code/User/settings.json"
vscode_path_2 = "/.config/Code/User/Snippets"
vscode_path_3 = "/.config/Code/User/keybindings.json"
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_1: "vscode/settings",
vscode_path_2: "vscode/Snippets",
vscode_path_3: "vscode/keybindings",
atom_path: "atom"
}

Expand Down

0 comments on commit 56d3142

Please sign in to comment.