dotfm

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

commit 84a4c35187b79efe423fa498a7f780eb37ddbaa5
parent 8984e17426cdcca1323c3f255bf0e3e41afc6a76
Author: gearsix <gearsix@tuta.io>
Date:   Fri,  8 Oct 2021 12:45:36 +0100

removed USER env requirement

Able to replace all instances of using it with HOME

Diffstat:
Msrc/dotfm.py | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/dotfm.py b/src/dotfm.py @@ -21,13 +21,12 @@ import argparse # GLOBALS #--------- NAME = os.path.basename(__file__) -HOME = os.getenv('HOME') USER = os.getenv('USER') ARGS = [] EDITOR = os.getenv('EDITOR') or 'nano' VERSION = 'v2.2.1' INSTALLED = [] -INSTALLED_FILE = '/home/{}/.local/share/dotfm/installed.csv'.format(USER) +INSTALLED_FILE = '{}/.local/share/dotfm/installed.csv'.format(HOME) KNOWN = [ # dotfiles that dotfm knows by default # install location, aliases... [INSTALLED_FILE, 'dotfm'],