Implement alt-link wildcards (#43)

pull/57/head
Tim Byrne 7 years ago
parent 3ea710317a
commit eaa252f721
No known key found for this signature in database
GPG Key ID: 6CBE24C2FD8CF76E

@ -110,9 +110,12 @@ function alt() {
#; regex for matching "<file>##SYSTEM.HOSTNAME.USER"
match_system=$(uname -s)
match_system="(%|$match_system)"
match_host=$(hostname)
match_host=${match_host%%.*} #; trim any domain from hostname
match_host="(%|$match_host)"
match_user=$(id -u -n)
match_user="(%|$match_user)"
match="^(.+)##($match_system|$match_system\.$match_host|$match_system\.$match_host\.$match_user|())$"
#; process relative to YADM_WORK

Loading…
Cancel
Save