18 lines
368 B
Bash
Executable file
18 lines
368 B
Bash
Executable file
#!/bin/env sh
|
|
|
|
addApplications git gnome-keyring \
|
|
git-credential-oauth
|
|
|
|
configure-git-oauth() {
|
|
git credential-oauth configure
|
|
}
|
|
|
|
#source ./30-GitUserConfig.sh.add
|
|
|
|
if ! git config list | grep "credential.helper=oauth" >/dev/null; then
|
|
addActions configure-git-oauth
|
|
fi
|
|
|
|
if ! git config list | grep "user.name" > /dev/null; then
|
|
addActions git-user-config
|
|
fi
|