diff options
| -rw-r--r-- | git/config | 15 | ||||
| -rw-r--r-- | git/ignore | 7 | ||||
| -rw-r--r-- | install.sh | 6 |
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] + email = [email protected] + 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 @@ -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 |
