alichtman / alichtman/shallow-backup

OS-specific configurations

未关闭
#286 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
1.3k
派生
267
PR 合并指标
30 天内没有已合并 PR

描述

Is this something that's up for consideration? I use different operating systems for work vs. my personal computer. As of now, I'm controlling which files are backed up and/or reinstalled with something like `[[ $OSTYPE =~ 'linux' ]]` or `[[ $OSTYPE =~ 'darwin' ]]` in the condition fields, but it doesn't make much sense to backup `shallow-backup.conf` itself due to paths differing based on the OS, e.g. on my Macbook, my Sublime Text settings are at `/Users/$USER/Library/Application Support/Sublime Text 3/Installed Packages`, while on my personal Windows machine with WSL, they're at `/mnt/c/Users/$USER/AppData/Roaming/Sublime Text 3`. The `backup_path` potentially differs for both as well.

Basically, more programmatic parsing of `shallow-backup.conf` is what I'm looking for.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。