Skip to content

Commit

Permalink
added vscode extensions backup
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderProd committed Jan 6, 2019
1 parent b5242c2 commit af0532d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion shallow_backup/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def backup_packages(backup_path, skip=False):
# pip3
print_pkg_mgr_backup("pip3")
command = "pip3 list --format=freeze"
dest = "{}/pip_list.txt".format(backup_path)
dest = "{}/pip3_list.txt".format(backup_path)
run_cmd_write_stdout(command, dest)

# npm
Expand All @@ -143,6 +143,12 @@ def backup_packages(backup_path, skip=False):
dest = "{}/apm_list.txt".format(backup_path)
run_cmd_write_stdout(command, dest)

# vscode extensions
print_pkg_mgr_backup("VSCode")
command = "code --list-extensions --show-versions"
dest = "{}/vscode_extensions_list.txt".format(backup_path)
run_cmd_write_stdout(command, dest)

# macports
print_pkg_mgr_backup("macports")
command = "port installed requested"
Expand Down

0 comments on commit af0532d

Please sign in to comment.