More moving stuff around

This commit is contained in:
2017-10-16 16:05:15 +02:00
parent bade4f97ae
commit 363839b1e2
10 changed files with 23 additions and 5 deletions

29
dev/git/setup.sh Executable file
View File

@@ -0,0 +1,29 @@
#!/usr/bin/env bash
source ${DOTFILES}/helpers.sh
function main()
{
local scriptdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
print_info "Configuring git"
brewget git
if [ ! -f "${HOME}/.gitconfig" ]; then
cat << EOF > ${HOME}/.gitconfig
[include]
path = ${scriptdir}/gitconfig
[core]
excludesfile = ${scriptdir}/gitignore_global
EOF
fi
makedir ${HOME}/bin
linkfile ${scriptdir}/prettygit ${HOME}/bin/prettygit
linkfile ${scriptdir}/git-on-tree ${HOME}/bin/git-on-tree
print_ok "Git configured"
}
main "$@"