From 8e05233efa175edd23ea9450418c2056fdebd44f Mon Sep 17 00:00:00 2001 From: Mitsuo Tokumori Date: Thu, 5 May 2022 19:43:01 -0500 Subject: Add git/ (.config directory) Contains global "gitignore" and "gitconfig" --- git/config | 15 +++++++++++++++ git/ignore | 7 +++++++ install.sh | 6 ++++++ 3 files changed, 28 insertions(+) create mode 100644 git/config create mode 100644 git/ignore diff --git a/git/config b/git/config new file mode 100644 index 0000000..e84323e --- /dev/null +++ b/git/config @@ -0,0 +1,15 @@ +# Set up with authentication with gh(1) (GitHub CLI) +[credential "https://github.com"] + helper = + helper = !/usr/bin/gh auth git-credential +[credential "https://gist.github.com"] + helper = + helper = !/usr/bin/gh auth git-credential +[user] + email = rtokumori@pucp.edu.pe + name = Mitsuo Tokumori +[diff] + # used with $ git difftool + tool = vimdiff +[merge] + tool = vimdiff diff --git a/git/ignore b/git/ignore new file mode 100644 index 0000000..d71d05b --- /dev/null +++ b/git/ignore @@ -0,0 +1,7 @@ +# gitconfig file in ~/.config/git/config (if not in ~/.gitconfig) + +# Vim +*.swp + +# KDE +.directory diff --git a/install.sh b/install.sh index 6d794b3..f35fc86 100644 --- a/install.sh +++ b/install.sh @@ -53,6 +53,12 @@ chmod 0700 ~/.vim/swap # swap files should only be readable by owner eval $cp_or_ln " ${PWD}/vim/vimrc ~/$VIMFILES/vimrc" eval $cp_or_ln " ${PWD}/vim/fun.vim ~/$VIMFILES/fun.vim" +# git + +[ -d ~/.config/git ] || mkdir -p ~/.config/git +eval $cp_or_ln " ${PWD}/git/ignore ~/.config/git/ignore" +eval $cp_or_ln " ${PWD}/git/config ~/.config/git/config" + # done -- cgit v1.2.3