From f8727bef897d00fed5d9f9d9255d6a2067a5fe55 Mon Sep 17 00:00:00 2001 From: pxgamer Date: Mon, 19 Feb 2018 16:20:25 +0000 Subject: [PATCH] Add YEAR token to the list of sed replacements --- pkg/omf/functions/packages/omf.packages.new.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/omf/functions/packages/omf.packages.new.fish b/pkg/omf/functions/packages/omf.packages.new.fish index 936416a..2c96d03 100644 --- a/pkg/omf/functions/packages/omf.packages.new.fish +++ b/pkg/omf/functions/packages/omf.packages.new.fish @@ -23,7 +23,7 @@ function __omf.packages.new.from_template -a path github user name echo (basename "$file") end end) - sed "s/{{USER_NAME}}/$user/;s/{{GITHUB_USER}}/$github/;s/{{NAME}}/$name/" \ + sed "s/{{USER_NAME}}/$user/;s/{{GITHUB_USER}}/$github/;s/{{NAME}}/$name/;s/{{YEAR}}/${date +%y}/" \ $file > $target echo (omf::em)" create "(omf::off)" "(begin if test (basename $PWD) = $name