mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-22 09:51:03 +08:00
Fix setting the variable for 'year'
This commit is contained in:
parent
f8727bef89
commit
652d5e341a
|
@ -23,7 +23,8 @@ 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/;s/{{YEAR}}/${date +%y}/" \
|
||||
set -l year (date +%Y)
|
||||
sed "s/{{USER_NAME}}/$user/;s/{{GITHUB_USER}}/$github/;s/{{NAME}}/$name/;s/{{YEAR}}/$year/" \
|
||||
$file > $target
|
||||
echo (omf::em)" create "(omf::off)" "(begin
|
||||
if test (basename $PWD) = $name
|
||||
|
|
Loading…
Reference in New Issue
Block a user