@@ -512,19 +512,19 @@ Class must be manually set using
512512See the CONFIGURATION section for more details about setting
513513.BR local.class .
514514.TP
515+ .BR distro_family ,\ f
516+ Valid if the value matches the distro family.
517+ Distro family is calculated by inspecting the ID_LIKE line from
518+ .B "/etc/os-release"
519+ (or ID if no ID_LIKE line is found).
520+ .TP
515521.BR distro ,\ d
516522Valid if the value matches the distro.
517523Distro is calculated by running
518524.B "lsb_release \- si"
519525or by inspecting the ID from
520526.BR " /etc/os-release" .
521527.TP
522- .BR distro_family ,\ f
523- Valid if the value matches the distro family.
524- Distro family is calculated by inspecting the ID_LIKE line from
525- .B "/etc/os-release"
526- (or ID if no ID_LIKE line is found).
527- .TP
528528.BR os ,\ o
529529Valid if the value matches the OS.
530530OS is calculated by running
@@ -573,13 +573,13 @@ files are managed by yadm's repository:
573573
574574 - $HOME/path/example.txt##default
575575 - $HOME/path/example.txt##class.Work
576+ - $HOME/path/example.txt##class.Work,~os.Darwin
576577 - $HOME/path/example.txt##os.Darwin
577578 - $HOME/path/example.txt##os.Darwin,hostname.host1
578579 - $HOME/path/example.txt##os.Darwin,hostname.host2
579580 - $HOME/path/example.txt##os.Linux
580581 - $HOME/path/example.txt##os.Linux,hostname.host1
581582 - $HOME/path/example.txt##os.Linux,hostname.host2
582- - $HOME/path/example.txt##class.Work,~os.Darwin
583583
584584If running on a Macbook named "host2",
585585yadm will create a symbolic link which looks like this:
@@ -606,13 +606,12 @@ If running on a Macbook with class set to "Work", the link will be:
606606
607607.IR $HOME/path/example.txt " -> " $HOME/path/example.txt##class.Work
608608
609- Negative conditions are supported via the "~" prefix. If again running on a system
610- with class set to "Work", but instead within Windows Subsystem for Linux, where the
611- os is reported as WSL, the link will be:
609+ Since class has higher precedence than os, this version is chosen.
612610
613- .IR $HOME/path/example.txt " -> " $HOME/path/example.txt##class.Work,~os.Darwin
611+ If running on a system with class set to "Work", but instead within Windows
612+ Subsystem for Linux, where the os is reported as WSL, the link will be:
614613
615- Negative conditions use the same weight which corresponds to the attached attribute.
614+ . IR $HOME/path/example.txt " -> " $HOME/path/example.txt##class.Work,~os.Darwin
616615
617616If no "##default" version exists and no files have valid conditions, then no
618617link will be created.
0 commit comments