mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-15 12:12:45 +00:00
fix template generator using incorrect variable USERNAME → USER
This commit is contained in:
parent
aa8a770dea
commit
a1c319db73
@ -18,10 +18,10 @@ function omf_new -a option name
|
||||
cd $dir
|
||||
|
||||
set -l github (git config github.user)
|
||||
test -z "$github"; and set github "{{USERNAME}}"
|
||||
test -z "$github"; and set github "{{USER}}"
|
||||
|
||||
set -l user (git config user.name)
|
||||
test -z "$user"; and set user "{{USERNAME}}"
|
||||
test -z "$user"; and set user "{{USER}}"
|
||||
|
||||
omf_new_from_template "$OMF_PATH/pkg/omf/templates/$option" \
|
||||
$github $user $name
|
||||
|
Loading…
Reference in New Issue
Block a user