]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - gitconfig.m4
gitconfig: Also use a pager for git status.
[config/dotfiles.git] / gitconfig.m4
1 # Global Git configuration file.
2
3
4 dnl Load m4 macros.
5 include(../lib.m4)
6
7 [user]
8         name = Simon Ruderich
9         email = simon@ruderich.org
10
11 [color]
12         ui = auto
13
14 [core]
15         editor = vim
16         excludesfile = GITIGNORE
17
18 [pager]
19         # Use pager with git status.
20         status = yes
21
22 [alias]
23         # Shortcuts for often used commands.
24         c  = commit -v
25         ci = commit -v
26         d  = diff
27         di = diff
28         s  = status
29         st = status
30         l  = log
31         a  = add
32         co = checkout
33         b  = branch -av
34         br = branch -av
35         m  = merge
36         me = merge
37         f  = fetch
38         fe = fetch
39         p  = push
40         pu = push
41         # Custom commands.
42         fs = fsck --strict --full
43         glog = log --pretty=oneline --graph --all
44         ss = stash save
45         sa = stash apply
46         sl = stash list
47
48 [diff]
49         # Detect copies and renames.
50         renames = copy
51
52 [merge]
53 IF(OS, darwin)
54         tool = opendiff
55 FI
56 IF(OS, debian)
57         tool = vimdiff
58 FI
59
60 # vim: ft=gitconfig