summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitsuo Tokumori <[email protected]>2022-05-05 19:43:01 -0500
committerMitsuo Tokumori <[email protected]>2022-05-05 19:43:01 -0500
commit8e05233efa175edd23ea9450418c2056fdebd44f (patch)
tree2ef92b77ec14a364769fd479d78e43369844c04a
parentc3196f6ecc1fbf7fc8ce3c9f8e142985c2855d7e (diff)
downloaddotfiles-8e05233efa175edd23ea9450418c2056fdebd44f.tar.gz
dotfiles-8e05233efa175edd23ea9450418c2056fdebd44f.tar.bz2
dotfiles-8e05233efa175edd23ea9450418c2056fdebd44f.zip
Add git/ (.config directory)
Contains global "gitignore" and "gitconfig"
-rw-r--r--git/config15
-rw-r--r--git/ignore7
-rw-r--r--install.sh6
3 files changed, 28 insertions, 0 deletions
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]
+ 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