Release 2.1.0
Update version number and update documentation * Use relative symlinks for alternates (#100, #177) * Support double-star globs in .config/yadm/encrypt (#109) * Improve bash completion (#136) * Update docs about using magit (#123) * Note exception for WSL (#113)
This commit is contained in:
parent
ecbffdbb28
commit
75c19c9cc0
7 changed files with 120 additions and 96 deletions
7
CHANGES
7
CHANGES
|
@ -1,3 +1,10 @@
|
||||||
|
2.1.0
|
||||||
|
* Use relative symlinks for alternates (#100, #177)
|
||||||
|
* Support double-star globs in .config/yadm/encrypt (#109)
|
||||||
|
* Improve bash completion (#136)
|
||||||
|
* Update docs about using magit (#123)
|
||||||
|
* Note exception for WSL (#113)
|
||||||
|
|
||||||
2.0.1
|
2.0.1
|
||||||
* Fix bug with worktree permissions (#174)
|
* Fix bug with worktree permissions (#174)
|
||||||
|
|
||||||
|
|
|
@ -2,11 +2,13 @@ CONTRIBUTORS
|
||||||
|
|
||||||
Tim Byrne
|
Tim Byrne
|
||||||
Espen Henriksen
|
Espen Henriksen
|
||||||
Cameron Eagans
|
|
||||||
Ross Smith II
|
Ross Smith II
|
||||||
|
Cameron Eagans
|
||||||
|
David Mandelberg
|
||||||
Klas Mellbourn
|
Klas Mellbourn
|
||||||
Jan Schulz
|
Jan Schulz
|
||||||
Satoshi Ohki
|
Satoshi Ohki
|
||||||
|
Sheng Yang
|
||||||
Siôn Le Roux
|
Siôn Le Roux
|
||||||
Sébastien Gross
|
Sébastien Gross
|
||||||
Thomas Luzat
|
Thomas Luzat
|
||||||
|
@ -14,6 +16,7 @@ Tomas Cernaj
|
||||||
Uroš Golja
|
Uroš Golja
|
||||||
Brayden Banks
|
Brayden Banks
|
||||||
japm48
|
japm48
|
||||||
|
Daniel Gray
|
||||||
Daniel Wagenknecht
|
Daniel Wagenknecht
|
||||||
Franciszek Madej
|
Franciszek Madej
|
||||||
Mateusz Piotrowski
|
Mateusz Piotrowski
|
||||||
|
|
|
@ -42,7 +42,7 @@ Features, usage, examples and installation instructions can be found on the
|
||||||
[master-badge]: https://img.shields.io/travis/TheLocehiliosan/yadm/master.svg?label=master
|
[master-badge]: https://img.shields.io/travis/TheLocehiliosan/yadm/master.svg?label=master
|
||||||
[master-commits]: https://github.com/TheLocehiliosan/yadm/commits/master
|
[master-commits]: https://github.com/TheLocehiliosan/yadm/commits/master
|
||||||
[master-date]: https://img.shields.io/github/last-commit/TheLocehiliosan/yadm/master.svg?label=master
|
[master-date]: https://img.shields.io/github/last-commit/TheLocehiliosan/yadm/master.svg?label=master
|
||||||
[obs-badge]: https://img.shields.io/badge/OBS-v2.0.1-blue
|
[obs-badge]: https://img.shields.io/badge/OBS-v2.1.0-blue
|
||||||
[obs-link]: https://software.opensuse.org//download.html?project=home%3ATheLocehiliosan%3Ayadm&package=yadm
|
[obs-link]: https://software.opensuse.org//download.html?project=home%3ATheLocehiliosan%3Ayadm&package=yadm
|
||||||
[releases-badge]: https://img.shields.io/github/tag/TheLocehiliosan/yadm.svg?label=latest+release
|
[releases-badge]: https://img.shields.io/github/tag/TheLocehiliosan/yadm.svg?label=latest+release
|
||||||
[releases-link]: https://github.com/TheLocehiliosan/yadm/releases
|
[releases-link]: https://github.com/TheLocehiliosan/yadm/releases
|
||||||
|
|
2
yadm
2
yadm
|
@ -20,7 +20,7 @@ if [ -z "$BASH_VERSION" ]; then
|
||||||
[ "$YADM_TEST" != 1 ] && exec bash "$0" "$@"
|
[ "$YADM_TEST" != 1 ] && exec bash "$0" "$@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
VERSION=2.0.1
|
VERSION=2.1.0
|
||||||
|
|
||||||
YADM_WORK="$HOME"
|
YADM_WORK="$HOME"
|
||||||
YADM_DIR=
|
YADM_DIR=
|
||||||
|
|
2
yadm.1
2
yadm.1
|
@ -1,5 +1,5 @@
|
||||||
." vim: set spell so=8:
|
." vim: set spell so=8:
|
||||||
.TH yadm 1 "12 November 2019" "2.0.1"
|
.TH yadm 1 "27 November 2019" "2.1.0"
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
|
|
||||||
|
|
196
yadm.md
196
yadm.md
|
@ -116,65 +116,72 @@
|
||||||
the same way you leave your normal shell (usually with the
|
the same way you leave your normal shell (usually with the
|
||||||
"exit" command). This sub-shell can be used to easily interact
|
"exit" command). This sub-shell can be used to easily interact
|
||||||
with your yadm repository using "git" commands. This could be
|
with your yadm repository using "git" commands. This could be
|
||||||
useful if you are using a tool which uses Git directly. For
|
useful if you are using a tool which uses Git directly.
|
||||||
example, Emacs Tramp and Magit can manage files by using this
|
|
||||||
configuration:
|
For example, Emacs Tramp and Magit can manage files by using
|
||||||
|
this configuration:
|
||||||
|
|
||||||
(add-to-list 'tramp-methods
|
(add-to-list 'tramp-methods
|
||||||
'("yadm"
|
'("yadm"
|
||||||
(tramp-login-program "yadm")
|
(tramp-login-program "yadm")
|
||||||
(tramp-login-args (("enter")))
|
(tramp-login-args (("enter")))
|
||||||
|
(tramp-login-env (("SHELL") ("/bin/sh")))
|
||||||
(tramp-remote-shell "/bin/sh")
|
(tramp-remote-shell "/bin/sh")
|
||||||
(tramp-remote-shell-args ("-c"))))
|
(tramp-remote-shell-args ("-c"))))
|
||||||
|
|
||||||
|
With this config, use (magit-status "/yadm::"). If you find
|
||||||
|
issue with Emacs 27 and zsh, trying running (setenv "SHELL"
|
||||||
|
"/bin/bash").
|
||||||
|
|
||||||
gitconfig
|
gitconfig
|
||||||
Pass options to the git config command. Since yadm already uses
|
Pass options to the git config command. Since yadm already uses
|
||||||
the config command to manage its own configurations, this com-
|
the config command to manage its own configurations, this com-
|
||||||
mand is provided as a way to change configurations of the repos-
|
mand is provided as a way to change configurations of the repos-
|
||||||
itory managed by yadm. One useful case might be to configure
|
itory managed by yadm. One useful case might be to configure
|
||||||
the repository so untracked files are shown in status commands.
|
the repository so untracked files are shown in status commands.
|
||||||
yadm initially configures its repository so that untracked files
|
yadm initially configures its repository so that untracked files
|
||||||
are not shown. If you wish use the default Git behavior (to
|
are not shown. If you wish use the default Git behavior (to
|
||||||
show untracked files and directories), you can remove this con-
|
show untracked files and directories), you can remove this con-
|
||||||
figuration.
|
figuration.
|
||||||
|
|
||||||
yadm gitconfig --unset status.showUntrackedFiles
|
yadm gitconfig --unset status.showUntrackedFiles
|
||||||
|
|
||||||
help Print a summary of yadm commands.
|
help Print a summary of yadm commands.
|
||||||
|
|
||||||
init Initialize a new, empty repository for tracking dotfiles. The
|
init Initialize a new, empty repository for tracking dotfiles. The
|
||||||
repository is stored in $HOME/.config/yadm/repo.git. By
|
repository is stored in $HOME/.config/yadm/repo.git. By
|
||||||
default, $HOME will be used as the work-tree, but this can be
|
default, $HOME will be used as the work-tree, but this can be
|
||||||
overridden with the -w option. yadm can be forced to overwrite
|
overridden with the -w option. yadm can be forced to overwrite
|
||||||
an existing repository by providing the -f option.
|
an existing repository by providing the -f option.
|
||||||
|
|
||||||
list Print a list of files managed by yadm. The -a option will cause
|
list Print a list of files managed by yadm. The -a option will cause
|
||||||
all managed files to be listed. Otherwise, the list will only
|
all managed files to be listed. Otherwise, the list will only
|
||||||
include files from the current directory or below.
|
include files from the current directory or below.
|
||||||
|
|
||||||
introspect category
|
introspect category
|
||||||
Report internal yadm data. Supported categories are commands,
|
Report internal yadm data. Supported categories are commands,
|
||||||
configs, repo, and switches. The purpose of introspection is to
|
configs, repo, and switches. The purpose of introspection is to
|
||||||
support command line completion.
|
support command line completion.
|
||||||
|
|
||||||
perms Update permissions as described in the PERMISSIONS section. It
|
perms Update permissions as described in the PERMISSIONS section. It
|
||||||
is usually unnecessary to run this command, as yadm automati-
|
is usually unnecessary to run this command, as yadm automati-
|
||||||
cally processes permissions by default. This automatic behavior
|
cally processes permissions by default. This automatic behavior
|
||||||
can be disabled by setting the configuration yadm.auto-perms to
|
can be disabled by setting the configuration yadm.auto-perms to
|
||||||
"false".
|
"false".
|
||||||
|
|
||||||
upgrade
|
upgrade
|
||||||
Version 2 of yadm uses a different directory for storing your
|
Version 2 of yadm uses a different directory for storing your
|
||||||
configurations. When you start to use version 2 for the first
|
configurations. When you start to use version 2 for the first
|
||||||
time, you may see warnings about moving your data to this new
|
time, you may see warnings about moving your data to this new
|
||||||
directory. The easiest way to accomplish this is by running
|
directory. The easiest way to accomplish this is by running
|
||||||
"yadm upgrade". This command will start by moving your yadm
|
"yadm upgrade". This command will start by moving your yadm
|
||||||
repo to the new path. Next it will move any configuration data
|
repo to the new path. Next it will move any configuration data
|
||||||
to the new path. If the configurations are tracked within your
|
to the new path. If the configurations are tracked within your
|
||||||
yadm repo, this command will "stage" the renaming of those files
|
yadm repo, this command will "stage" the renaming of those files
|
||||||
in the repo's index. Upgrading will also re-initialize all sub-
|
in the repo's index. Upgrading will also re-initialize all sub-
|
||||||
modules you have added (otherwise they will be broken when the
|
modules you have added (otherwise they will be broken when the
|
||||||
repo moves). After running "yadm upgrade", you should run "yadm
|
repo moves). After running "yadm upgrade", you should run "yadm
|
||||||
status" to review changes which have been staged, and commit
|
status" to review changes which have been staged, and commit
|
||||||
them to your repository.
|
them to your repository.
|
||||||
|
|
||||||
You can read https://yadm.io/docs/upgrade_from_1 for more infor-
|
You can read https://yadm.io/docs/upgrade_from_1 for more infor-
|
||||||
|
@ -185,40 +192,40 @@
|
||||||
|
|
||||||
|
|
||||||
## COMPATIBILITY
|
## COMPATIBILITY
|
||||||
Beginning with version 2.0.0, yadm introduced a couple major changes
|
Beginning with version 2.0.0, yadm introduced a couple major changes
|
||||||
which may require you to adjust your configurations. See the upgrade
|
which may require you to adjust your configurations. See the upgrade
|
||||||
command for help making those adjustments.
|
command for help making those adjustments.
|
||||||
|
|
||||||
First, yadm now uses the "XDG Base Directory Specification" to find its
|
First, yadm now uses the "XDG Base Directory Specification" to find its
|
||||||
configurations. You can read https://yadm.io/docs/upgrade_from_1 for
|
configurations. You can read https://yadm.io/docs/upgrade_from_1 for
|
||||||
more information.
|
more information.
|
||||||
|
|
||||||
Second, the naming conventions for alternate files have been changed.
|
Second, the naming conventions for alternate files have been changed.
|
||||||
You can read https://yadm.io/docs/alternates for more information.
|
You can read https://yadm.io/docs/alternates for more information.
|
||||||
|
|
||||||
If you want to retain the old functionality, you can set an environment
|
If you want to retain the old functionality, you can set an environment
|
||||||
variable, YADM_COMPATIBILITY=1. Doing so will automatically use the
|
variable, YADM_COMPATIBILITY=1. Doing so will automatically use the
|
||||||
old yadm directory, and process alternates the same as the pre-2.0.0
|
old yadm directory, and process alternates the same as the pre-2.0.0
|
||||||
version. This compatibility mode is deprecated, and will be removed in
|
version. This compatibility mode is deprecated, and will be removed in
|
||||||
future versions. This mode exists solely for transitioning to the new
|
future versions. This mode exists solely for transitioning to the new
|
||||||
paths and naming of alternates.
|
paths and naming of alternates.
|
||||||
|
|
||||||
|
|
||||||
## OPTIONS
|
## OPTIONS
|
||||||
yadm supports a set of universal options that alter the paths it uses.
|
yadm supports a set of universal options that alter the paths it uses.
|
||||||
The default paths are documented in the FILES section. Any path speci-
|
The default paths are documented in the FILES section. Any path speci-
|
||||||
fied by these options must be fully qualified. If you always want to
|
fied by these options must be fully qualified. If you always want to
|
||||||
override one or more of these paths, it may be useful to create an
|
override one or more of these paths, it may be useful to create an
|
||||||
alias for the yadm command. For example, the following alias could be
|
alias for the yadm command. For example, the following alias could be
|
||||||
used to override the repository directory.
|
used to override the repository directory.
|
||||||
|
|
||||||
alias yadm='yadm --yadm-repo /alternate/path/to/repo'
|
alias yadm='yadm --yadm-repo /alternate/path/to/repo'
|
||||||
|
|
||||||
The following is the full list of universal options. Each option
|
The following is the full list of universal options. Each option
|
||||||
should be followed by a fully qualified path.
|
should be followed by a fully qualified path.
|
||||||
|
|
||||||
-Y,--yadm-dir
|
-Y,--yadm-dir
|
||||||
Override the yadm directory. yadm stores its data relative to
|
Override the yadm directory. yadm stores its data relative to
|
||||||
this directory.
|
this directory.
|
||||||
|
|
||||||
--yadm-repo
|
--yadm-repo
|
||||||
|
@ -238,9 +245,9 @@
|
||||||
|
|
||||||
|
|
||||||
## CONFIGURATION
|
## CONFIGURATION
|
||||||
yadm uses a configuration file named $HOME/.config/yadm/config. This
|
yadm uses a configuration file named $HOME/.config/yadm/config. This
|
||||||
file uses the same format as git-config(1). Also, you can control the
|
file uses the same format as git-config(1). Also, you can control the
|
||||||
contents of the configuration file via the yadm config command (which
|
contents of the configuration file via the yadm config command (which
|
||||||
works exactly like git-config). For example, to disable alternates you
|
works exactly like git-config). For example, to disable alternates you
|
||||||
can run the command:
|
can run the command:
|
||||||
|
|
||||||
|
@ -250,67 +257,67 @@
|
||||||
|
|
||||||
yadm.alt-copy
|
yadm.alt-copy
|
||||||
If set to "true", alternate files will be copies instead of sym-
|
If set to "true", alternate files will be copies instead of sym-
|
||||||
bolic links. This might be desirable, because some systems may
|
bolic links. This might be desirable, because some systems may
|
||||||
not properly support symlinks.
|
not properly support symlinks.
|
||||||
|
|
||||||
NOTE: The deprecated yadm.cygwin-copy option used by older ver-
|
NOTE: The deprecated yadm.cygwin-copy option used by older ver-
|
||||||
sions of yadm has been replaced by yadm.alt-copy. The old
|
sions of yadm has been replaced by yadm.alt-copy. The old
|
||||||
option will be removed in the next version of yadm.
|
option will be removed in the next version of yadm.
|
||||||
|
|
||||||
yadm.auto-alt
|
yadm.auto-alt
|
||||||
Disable the automatic linking described in the section ALTER-
|
Disable the automatic linking described in the section ALTER-
|
||||||
NATES. If disabled, you may still run "yadm alt" manually to
|
NATES. If disabled, you may still run "yadm alt" manually to
|
||||||
create the alternate links. This feature is enabled by default.
|
create the alternate links. This feature is enabled by default.
|
||||||
|
|
||||||
yadm.auto-exclude
|
yadm.auto-exclude
|
||||||
Disable the automatic exclusion of patterns defined in
|
Disable the automatic exclusion of patterns defined in
|
||||||
$HOME/.config/yadm/encrypt. This feature is enabled by default.
|
$HOME/.config/yadm/encrypt. This feature is enabled by default.
|
||||||
|
|
||||||
yadm.auto-perms
|
yadm.auto-perms
|
||||||
Disable the automatic permission changes described in the sec-
|
Disable the automatic permission changes described in the sec-
|
||||||
tion PERMISSIONS. If disabled, you may still run yadm perms
|
tion PERMISSIONS. If disabled, you may still run yadm perms
|
||||||
manually to update permissions. This feature is enabled by
|
manually to update permissions. This feature is enabled by
|
||||||
default.
|
default.
|
||||||
|
|
||||||
yadm.auto-private-dirs
|
yadm.auto-private-dirs
|
||||||
Disable the automatic creating of private directories described
|
Disable the automatic creating of private directories described
|
||||||
in the section PERMISSIONS.
|
in the section PERMISSIONS.
|
||||||
|
|
||||||
yadm.git-program
|
yadm.git-program
|
||||||
Specify an alternate program to use instead of "git". By
|
Specify an alternate program to use instead of "git". By
|
||||||
default, the first "git" found in $PATH is used.
|
default, the first "git" found in $PATH is used.
|
||||||
|
|
||||||
yadm.gpg-perms
|
yadm.gpg-perms
|
||||||
Disable the permission changes to $HOME/.gnupg/*. This feature
|
Disable the permission changes to $HOME/.gnupg/*. This feature
|
||||||
is enabled by default.
|
is enabled by default.
|
||||||
|
|
||||||
yadm.gpg-program
|
yadm.gpg-program
|
||||||
Specify an alternate program to use instead of "gpg". By
|
Specify an alternate program to use instead of "gpg". By
|
||||||
default, the first "gpg" found in $PATH is used.
|
default, the first "gpg" found in $PATH is used.
|
||||||
|
|
||||||
yadm.gpg-recipient
|
yadm.gpg-recipient
|
||||||
Asymmetrically encrypt files with a gpg public/private key pair.
|
Asymmetrically encrypt files with a gpg public/private key pair.
|
||||||
Provide a "key ID" to specify which public key to encrypt with.
|
Provide a "key ID" to specify which public key to encrypt with.
|
||||||
The key must exist in your public keyrings. If left blank or
|
The key must exist in your public keyrings. If left blank or
|
||||||
not provided, symmetric encryption is used instead. If set to
|
not provided, symmetric encryption is used instead. If set to
|
||||||
"ASK", gpg will interactively ask for recipients. See the
|
"ASK", gpg will interactively ask for recipients. See the
|
||||||
ENCRYPTION section for more details. This feature is disabled
|
ENCRYPTION section for more details. This feature is disabled
|
||||||
by default.
|
by default.
|
||||||
|
|
||||||
yadm.ssh-perms
|
yadm.ssh-perms
|
||||||
Disable the permission changes to $HOME/.ssh/*. This feature is
|
Disable the permission changes to $HOME/.ssh/*. This feature is
|
||||||
enabled by default.
|
enabled by default.
|
||||||
|
|
||||||
The following four "local" configurations are not stored in the
|
The following four "local" configurations are not stored in the
|
||||||
$HOME/.config/yadm/config, they are stored in the local repository.
|
$HOME/.config/yadm/config, they are stored in the local repository.
|
||||||
|
|
||||||
|
|
||||||
local.class
|
local.class
|
||||||
Specify a class for the purpose of symlinking alternate files.
|
Specify a class for the purpose of symlinking alternate files.
|
||||||
By default, no class will be matched.
|
By default, no class will be matched.
|
||||||
|
|
||||||
local.hostname
|
local.hostname
|
||||||
Override the hostname for the purpose of symlinking alternate
|
Override the hostname for the purpose of symlinking alternate
|
||||||
files.
|
files.
|
||||||
|
|
||||||
local.os
|
local.os
|
||||||
|
@ -325,9 +332,9 @@
|
||||||
to have an automated way of choosing an alternate version of a file for
|
to have an automated way of choosing an alternate version of a file for
|
||||||
a different operating system, host, user, etc.
|
a different operating system, host, user, etc.
|
||||||
|
|
||||||
yadm will automatically create a symbolic link to the appropriate ver-
|
yadm will automatically create a symbolic link to the appropriate ver-
|
||||||
sion of a file, when a valid suffix is appended to the filename. The
|
sion of a file, when a valid suffix is appended to the filename. The
|
||||||
suffix contains the conditions that must be met for that file to be
|
suffix contains the conditions that must be met for that file to be
|
||||||
used.
|
used.
|
||||||
|
|
||||||
The suffix begins with "##", followed by any number of conditions sepa-
|
The suffix begins with "##", followed by any number of conditions sepa-
|
||||||
|
@ -335,9 +342,9 @@
|
||||||
|
|
||||||
##<condition>[,<condition>,...]
|
##<condition>[,<condition>,...]
|
||||||
|
|
||||||
Each condition is an attribute/value pair, separated by a period. Some
|
Each condition is an attribute/value pair, separated by a period. Some
|
||||||
conditions do not require a "value", and in that case, the period and
|
conditions do not require a "value", and in that case, the period and
|
||||||
value can be omitted. Most attributes can be abbreviated as a single
|
value can be omitted. Most attributes can be abbreviated as a single
|
||||||
letter.
|
letter.
|
||||||
|
|
||||||
<attribute>[.<value>]
|
<attribute>[.<value>]
|
||||||
|
@ -347,24 +354,24 @@
|
||||||
|
|
||||||
|
|
||||||
template, t
|
template, t
|
||||||
Valid when the value matches a supported template processor.
|
Valid when the value matches a supported template processor.
|
||||||
See the TEMPLATES section for more details.
|
See the TEMPLATES section for more details.
|
||||||
|
|
||||||
user, u
|
user, u
|
||||||
Valid if the value matches the current user. Current user is
|
Valid if the value matches the current user. Current user is
|
||||||
calculated by running id -u -n.
|
calculated by running id -u -n.
|
||||||
|
|
||||||
distro, d
|
distro, d
|
||||||
Valid if the value matches the distro. Distro is calculated by
|
Valid if the value matches the distro. Distro is calculated by
|
||||||
running lsb_release -si.
|
running lsb_release -si.
|
||||||
|
|
||||||
os, o Valid if the value matches the OS. OS is calculated by running
|
os, o Valid if the value matches the OS. OS is calculated by running
|
||||||
uname -s.
|
uname -s.
|
||||||
|
|
||||||
class, c
|
class, c
|
||||||
Valid if the value matches the local.class configuration. Class
|
Valid if the value matches the local.class configuration. Class
|
||||||
must be manually set using yadm config local.class <class>. See
|
must be manually set using yadm config local.class <class>. See
|
||||||
the CONFIGURATION section for more details about setting
|
the CONFIGURATION section for more details about setting
|
||||||
local.class.
|
local.class.
|
||||||
|
|
||||||
hostname, h
|
hostname, h
|
||||||
|
@ -375,6 +382,9 @@
|
||||||
Valid when no other alternate is valid.
|
Valid when no other alternate is valid.
|
||||||
|
|
||||||
|
|
||||||
|
NOTE: The OS for "Windows Subsystem for Linux" is reported as "WSL",
|
||||||
|
even though uname identifies as "Linux".
|
||||||
|
|
||||||
You may use any number of conditions, in any order. An alternate will
|
You may use any number of conditions, in any order. An alternate will
|
||||||
only be used if ALL conditions are valid. For all files managed by
|
only be used if ALL conditions are valid. For all files managed by
|
||||||
yadm's repository or listed in $HOME/.config/yadm/encrypt, if they
|
yadm's repository or listed in $HOME/.config/yadm/encrypt, if they
|
||||||
|
@ -492,6 +502,9 @@
|
||||||
yadm.user YADM_USER id -u -n
|
yadm.user YADM_USER id -u -n
|
||||||
yadm.source YADM_SOURCE Template filename
|
yadm.source YADM_SOURCE Template filename
|
||||||
|
|
||||||
|
NOTE: The OS for "Windows Subsystem for Linux" is reported as "WSL",
|
||||||
|
even though uname identifies as "Linux".
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
whatever##template with the following content
|
whatever##template with the following content
|
||||||
|
@ -502,7 +515,7 @@
|
||||||
config=dev-whatever
|
config=dev-whatever
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
would output a file named whatever with the following content if the
|
would output a file named whatever with the following content if the
|
||||||
user is "harvey":
|
user is "harvey":
|
||||||
|
|
||||||
config=work-Linux
|
config=work-Linux
|
||||||
|
@ -511,7 +524,7 @@
|
||||||
|
|
||||||
config=dev-whatever
|
config=dev-whatever
|
||||||
|
|
||||||
An equivalent Jinja template named whatever##template.j2 would look
|
An equivalent Jinja template named whatever##template.j2 would look
|
||||||
like:
|
like:
|
||||||
|
|
||||||
{% if YADM_USER == 'harvey' -%}
|
{% if YADM_USER == 'harvey' -%}
|
||||||
|
@ -522,24 +535,25 @@
|
||||||
|
|
||||||
|
|
||||||
## ENCRYPTION
|
## ENCRYPTION
|
||||||
It can be useful to manage confidential files, like SSH or GPG keys,
|
It can be useful to manage confidential files, like SSH or GPG keys,
|
||||||
across multiple systems. However, doing so would put plain text data
|
across multiple systems. However, doing so would put plain text data
|
||||||
into a Git repository, which often resides on a public system. yadm can
|
into a Git repository, which often resides on a public system. yadm can
|
||||||
make it easy to encrypt and decrypt a set of files so the encrypted
|
make it easy to encrypt and decrypt a set of files so the encrypted
|
||||||
version can be maintained in the Git repository. This feature will
|
version can be maintained in the Git repository. This feature will
|
||||||
only work if the gpg(1) command is available.
|
only work if the gpg(1) command is available.
|
||||||
|
|
||||||
To use this feature, a list of patterns must be created and saved as
|
To use this feature, a list of patterns must be created and saved as
|
||||||
$HOME/.config/yadm/encrypt. This list of patterns should be relative
|
$HOME/.config/yadm/encrypt. This list of patterns should be relative
|
||||||
to the configured work-tree (usually $HOME). For example:
|
to the configured work-tree (usually $HOME). For example:
|
||||||
|
|
||||||
.ssh/*.key
|
.ssh/*.key
|
||||||
.gnupg/*.gpg
|
.gnupg/*.gpg
|
||||||
|
|
||||||
Standard filename expansions (*, ?, [) are supported. Other shell
|
Standard filename expansions (*, ?, [) are supported. If you have Bash
|
||||||
expansions like brace and tilde are not supported. Spaces in paths are
|
version 4, you may use "**" to match all subdirectories. Other shell
|
||||||
supported, and should not be quoted. If a directory is specified, its
|
expansions like brace and tilde are not supported. Spaces in paths are
|
||||||
contents will be included, but not recursively. Paths beginning with a
|
supported, and should not be quoted. If a directory is specified, its
|
||||||
|
contents will be included, but not recursively. Paths beginning with a
|
||||||
"!" will be excluded.
|
"!" will be excluded.
|
||||||
|
|
||||||
The yadm encrypt command will find all files matching the patterns, and
|
The yadm encrypt command will find all files matching the patterns, and
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
|
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
|
||||||
Name: yadm
|
Name: yadm
|
||||||
Summary: Yet Another Dotfiles Manager
|
Summary: Yet Another Dotfiles Manager
|
||||||
Version: 2.0.1
|
Version: 2.1.0
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
URL: https://yadm.io
|
URL: https://yadm.io
|
||||||
|
|
Loading…
Reference in a new issue