-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.histignore
90 lines (88 loc) · 1.17 KB
/
.histignore
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# TODO: Implement this as a log-out history-cleanup script rather than HISTIGNORE preparation.
# I like all commands to be in history for the life of a terminal session, but lots of commands,
# like the ones listed in this file, are just noise in the history file.
# The following patterns specify commands that bash history will ignore.
# This file is parsed by .bash_aliases into the HISTIGNORE envvar.
# Note: Lines beginning with '#' and blank lines are not parsed into HISTIGNORE.
[ \t]*
&
[fb]g
exit
ls
la
ll
lal
tig
vim
cd -
git help*
git * --help
git push *
type -a *
# Ignore git aliases
# TODO: Automate this by extracting from ~/.git_aliases
# WIP:
# sed -r '/#.*$/d;/^$/d;s/^alias (.*)=.*/\1/' "$HOME/.git_aliases"
# Needs to have non-greedy star────┘ |
# Because the rhs may have an equals─┘ e.g. --pretty=true
# Also needs to extract function names
ga
gap
gau
gae
gbr*
gc
gc
gc!
gca
gcm
gcmr
gcam
gcr
gcar
gcamr
gch
gco*
gcop
gd*
gd.*
gdbr
gdc
gdc.
gf*
git-new
git_current_branch
glog
gl*
gla
gls
ggl
gm*
gmf*
gmfthis
gp*
gpthis
gr*
grb*
grbthis
grbc
grbi
grh*
grp
grsh
grv*
gst*
gstp
gstpi
gstl
gsta
gstai
gstd
gup
gupstation
gcp*
gfu
gsh*
gshs*
gsh.*
gs