config
A simple configuration manager
001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017 018 019 020 021 022 023 024 025 026 027 028 029 030 031 032 033 034 035 036 037 038 039 040 041 042 043 044 045 046 047 048 049 050 051 052 053 054 055 056 057 058 059 060 061 062 063 064 065 066 067 068 069 070 071 072 073 074 075 076 077 078 079 080 081 082 083 084 085 086 087 088 089 090 091 092 093 094 095 096 097 098 099 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
'\" t .\" 2021 (C) Pablo .\" Free use of this software is granted under the terms of the GPL-3.0 License .\" .TH "CONFIG" "1" "2021-12-12" "\ \&" "\ \&" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 .nh .ad l .de URL \fI\\$2\fP <\\$1>\\$3 .. .als MTO URL .if \n[.g] \{\ . mso www.tmac . am URL . ad l . . . am MTO . ad l . . . LINKSTYLE blue R < > .\} .SH "CONFIG" config \- A simple configuration manager. .SH "SYNOPSIS" .sp \fBconfig\fP track [-d|--delete] FILE... .sp \fBconfig\fP add FILE... .sp \fBconfig\fP list .sp \fBconfig\fP status .sp \fBconfig\fP -- COMMAND [ARG...] .sp \fBconfig\fP commit [ARG...] .SH "DESCRIPTION" .sp The config(1) command uses a bare Git repository to track dotfiles. .SH "COMMANDS" .sp \fBtrack\fP .RS 4 Add \fIFILE\fP to the list of files that should be tracked by config(1) .RE .RS 4 The \fB-d\fP and \fB--delete\fP flags are used to remove \fIFILE\fP from the list of tracked files .RE .sp \fBadd\fP .RS 4 Adds \fIFILE\fP to the git index if either \fIFILE\fP or any of its parents are in the list of tracked files .RE .RS 4 This works the same as \fIgit-add(1)\fP, except for the fact that config(1) checks if \fIFILE\fP is in the list of tracked files .RE .sp \fBlist\fP .RS 4 List the files that are tracked by config(1) .RE .sp \fBstatus\fP .RS 4 Show the working tree status .RE .sp \fB--\fP .RS 4 Pass the following command directly to Git .RE .sp Any other command is passed directly to Git. For example, .sp .if n .RS 4 .nf .fam C $ config commit -m ... .fam .fi .if n .RE .sp is the same as .sp .if n .RS 4 .nf .fam C $ config -- commit -m ... .fam .fi .if n .RE .sp which is the same as .sp .if n .RS 4 .nf .fam C $ git commit -m ... .fam .fi .if n .RE .sp when run from the appropriate directory. .SH "ENVIRONMENT" .sp \fB$DOTFILES_REPO\fP .RS 4 Specify the location of the bare Git repo where the files are stored. Defaults to \fB$XDG_DATA_HOME/dotfiles\fP or \fB$HOME/.local/share/dotfiles\fP. .RE .sp \fB$DOTFILES_LIST\fP .RS 4 Specify the location of the list of files that should be tracked by config(1). Defaults to \fB$XDG_CONFIG_HOME/dotfiles.list\fP or \fB$HOME/.config/dotfiles.list\fP. .RE .SH "AUTHORS" .sp \fBconfig\fP was written by Pablo <\c .MTO "pablo\-escobar\(atriseup.net" "" ">." .SH "COPYING" .sp Copyright (C) 2021 Pablo. Free use of this software is granted under the terms of the GPL\-3.0 License.