Skip to content
This repository was archived by the owner on Mar 3, 2020. It is now read-only.

Commit 8ff04e6

Browse files
committed
Bootstrap the gitconfig.symlink.example file with author name and email.
1 parent dda1e20 commit 8ff04e6

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

‎script/bootstrap‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,22 @@ fail () {
2626
exit
2727
}
2828

29+
setup_gitconfig () {
30+
if ! [ -f git/gitconfig.symlink ]
31+
then
32+
info 'setup gitconfig'
33+
34+
user ' - What is your github author name?'
35+
read -e git_authorname
36+
user ' - What is your github author email?'
37+
read -e git_authoremail
38+
39+
sed -e "s/AUTHORNAME/$git_authorname/g" -e "s/AUTHOREMAIL/$git_authoremail/g" git/gitconfig.symlink.example > git/gitconfig.symlink
40+
41+
success 'gitconfig'
42+
fi
43+
}
44+
2945
link_files () {
3046
ln -s $1 $2
3147
success "linked $1 to $2"
@@ -98,6 +114,7 @@ install_dotfiles () {
98114
done
99115
}
100116

117+
setup_gitconfig
101118
install_dotfiles
102119

103120
# If we are on a mac, lets install and setup homebrew

0 commit comments

Comments
 (0)