-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_gitconfig
More file actions
37 lines (27 loc) · 1.08 KB
/
dot_gitconfig
File metadata and controls
37 lines (27 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[user]
# ~/.gitconfig.local で設定する(リポジトリには含めない)
# name = "name"
# email = "email@example.com"
[include]
path = ~/.gitconfig.local
[core]
autocrlf = input
editor = nvim
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true # hunk 間を n / N で移動できるようにする
dark = true # ダークテーマで表示(代替: light = true、省略で自動判定)
[merge]
conflictStyle = zdiff3
[pull]
rebase = false
[push]
autoSetupRemote = true
[fetch]
prune = true
[init]
defaultBranch = main
[alias]
nb = "!f(){ \\\n echo \"from: $(git branch --show-current)\"; \\\n t=$(printf \"feature\\nbugfix\\nhotfix\\nrelease\\nchore\\n\" | fzf --no-sort --prompt=\"type > \"); \\\n [ -z \"$t\" ] && echo \"cancelled\" && exit 1; \\\n printf \"name: \"; read -r n; \\\n [ -z \"$n\" ] && echo \"name is required\" && exit 1; \\\n case \"$n\" in \\\n *\" \"*|*/|*\"..\"*) echo \"invalid name\"; exit 1 ;; \\\n esac; \\\n git switch -c \"$t/$n\"; \\\n}; f"