-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig
30 lines (27 loc) · 876 Bytes
/
config
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
[alias]
cf = config
cfh = config -h
# Local aliases
cfl = config --local
cfla = config --local --add
cfle = config --local --edit
cfll = config --local --list
cflg = config --local --get
cflr = !"f() { git config --local --get-regexp $1 | sed 's|'$1'.||'; }; f"
cflua = config --local --unset
# Global aliases
cfg = config --global
cfga = config --global --add
cfge = config --global --edit
cfgl = config --global --list
cfgg = config --global --get
cfgr = !"f() { git config --global --get-regexp $1 | sed 's|'$1'.||'; }; f"
cfgu = config --global --unset
# System aliases
cfs = config --system
cfsa = config --system --add
cfse = config --system --edit
cfsl = config --system --list
cfsg = config --system --get
cfsr = !"f() { git config --system --get-regexp $1 | sed 's|'$1'.||'; }; f"
cfsu = config --system --unset