✨ Added option to initialize npm with defaults
This commit is contained in:
parent
371ce6db62
commit
65a779a2ed
1 changed files with 14 additions and 1 deletions
15
scripts/bgit
15
scripts/bgit
|
|
@ -42,6 +42,8 @@ if [ $numrepos -eq 0 ] ; then
|
||||||
# and adds newly created README.md
|
# and adds newly created README.md
|
||||||
git add README.md
|
git add README.md
|
||||||
|
|
||||||
|
git config commit.gpgsign false
|
||||||
|
|
||||||
while [ true ];
|
while [ true ];
|
||||||
do
|
do
|
||||||
read -e -r -p "${txtwhite}would you like to change username/password from global defaults?(y/n): ${txtyellow}" changedefaults
|
read -e -r -p "${txtwhite}would you like to change username/password from global defaults?(y/n): ${txtyellow}" changedefaults
|
||||||
|
|
@ -67,7 +69,18 @@ if [ $numrepos -eq 0 ] ; then
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
git config commit.gpgsign false
|
while [ true ] ; do
|
||||||
|
read -e -r -p "${txtwhite}would you like to make this an npm project?(y/n): ${txtyellow}" confirmnpm
|
||||||
|
if [[ $confirmnpm == "y" || $confirmnpm == "yes" ]] ; then
|
||||||
|
npm init -y
|
||||||
|
break
|
||||||
|
else
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# Reset output style
|
||||||
|
tput bold & tput setaf 7
|
||||||
|
|
||||||
read -e -r -p "${txtwhite}include gitmoji?(y/n): ${txtyellow}" gittymoji
|
read -e -r -p "${txtwhite}include gitmoji?(y/n): ${txtyellow}" gittymoji
|
||||||
if [[ $gittymoji == "y" || $gittymoji == "yes" ]] ; then
|
if [[ $gittymoji == "y" || $gittymoji == "yes" ]] ; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue