хуй там плавал
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*.local.sh
|
||||
@@ -1,6 +1,6 @@
|
||||
[user]
|
||||
name = Vasili Svirydau
|
||||
email = vsvirydau@copperleaf.com
|
||||
email = vasili.svirydau@sterlingcapitalbrokers.com
|
||||
|
||||
[push]
|
||||
default = simple
|
||||
@@ -31,5 +31,5 @@
|
||||
[rebase]
|
||||
instructionFormat = (%an <%ae>) %s
|
||||
[pull]
|
||||
rebase = true
|
||||
ff = only
|
||||
rebase = true
|
||||
ff = only
|
||||
|
||||
21
setup.d/20-gitconfig.sh
Normal file
21
setup.d/20-gitconfig.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
DOTFILES=$( cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd || return)
|
||||
GITCONFIG="${DOTFILES}/bash.d/10-gitconfig.local.sh"
|
||||
|
||||
if [[ -z "${GIT_AUTHOR_NAME}" ]]; then
|
||||
read -p 'Git Author Name: ' GIT_AUTHOR_NAME
|
||||
fi
|
||||
|
||||
if [[ -z "${GIT_AUTHOR_EMAIL}" ]]; then
|
||||
read -p 'Git Author Email: ' GIT_AUTHOR_EMAIL
|
||||
fi
|
||||
|
||||
cat > "$GITCONFIG" <<EOL
|
||||
#!/bin/bash
|
||||
export GIT_AUTHOR_NAME="${GIT_AUTHOR_NAME}"
|
||||
export GIT_AUTHOR_EMAIL="${GIT_AUTHOR_EMAIL}"
|
||||
EOL
|
||||
|
||||
unset GIT_AUTHOR_NAME
|
||||
unset GIT_AUTHOR_EMAIL
|
||||
Reference in New Issue
Block a user