dotfm

My dotfile manager
git clone git://src.gearsix.net/dotfm
Log | Files | Refs | Atom | README | LICENSE

commit 06fd35eee27b31e94df7f485a2937ab869a6f540
parent 3e4b825258ffb63d6a73f23fa36853bcf0c3741c
Author: gearsix <gearsix@tuta.io>
Date:   Thu, 26 Jan 2023 12:36:20 +0000

updated VERSION; removed win32 INSTALLED_FILE location (unsupported platform)

Diffstat:
Msrc/dotfm.py | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/dotfm.py b/src/dotfm.py @@ -23,18 +23,21 @@ import argparse NAME = os.path.basename(__file__) HOME = os.getenv('HOME') ARGS = [] + EDITOR = os.getenv('EDITOR') or 'nano' -VERSION = 'v2.2.1' + +VERSION = 'v2.5.0' + INSTALLED = [] + INSTALLED_FILE = '' if sys.platform == 'linux' or sys.platform == 'linux2': INSTALLED_FILE = '{}/.local/share/dotfm/installed.csv'.format(HOME) elif sys.platform == 'darwin': INSTALLED_FILE = '{}/Library/Application Support/dotfm/installed.csv'.format(HOME) -elif sys.platform == 'win32' or sys.platform == 'cygwin' or sys.platform == 'msys': - INSTALLED_FILE = '{}/Local/dotfm/installed.csv'.format(os.getenv('APPDATA')) else: print('warning: unsupported system, things might break') + KNOWN = [ # dotfiles that dotfm knows by default # install location, aliases... [INSTALLED_FILE, 'dotfm'],