mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 15:09:46 +01:00
19 lines
315 B
YAML
19 lines
315 B
YAML
|
global_vars:
|
||
|
- name: currentdate
|
||
|
params:
|
||
|
format: '%d/%m/%Y'
|
||
|
type: date
|
||
|
- name: currenttime
|
||
|
params:
|
||
|
format: '%R'
|
||
|
type: date
|
||
|
matches:
|
||
|
- replace: It's {{currentdate}} {{currenttime}}
|
||
|
trigger: :now
|
||
|
- replace: 'line1
|
||
|
|
||
|
line2'
|
||
|
trigger: :hello
|
||
|
- regex: :hi(?P<person>.*)\.
|
||
|
replace: Hi {{person}}!
|