##// END OF EJS Templates
%hist -g without arg shows full shadow history
vivainio -
Show More
@@ -33,7 +33,7 b" def magic_history(self, parameter_s = ''):"
33
33
34 -g: treat the arg as a pattern to grep for in (full) history.
34 -g: treat the arg as a pattern to grep for in (full) history.
35 This includes the "shadow history" (almost all commands ever written).
35 This includes the "shadow history" (almost all commands ever written).
36 Use '%hist -g *' to show full shadow history (may be very long).
36 Use '%hist -g' to show full shadow history (may be very long).
37 In shadow history, every index nuwber starts with 0.
37 In shadow history, every index nuwber starts with 0.
38
38
39
39
@@ -56,7 +56,10 b" def magic_history(self, parameter_s = ''):"
56 if opts.has_key('g'):
56 if opts.has_key('g'):
57 init = 1
57 init = 1
58 final = len(input_hist)
58 final = len(input_hist)
59 head, pattern = parameter_s.split(None,1)
59 parts = parameter_s.split(None,1)
60 if len(parts) == 1:
61 parts += '*'
62 head, pattern = parts
60 pattern = "*" + pattern + "*"
63 pattern = "*" + pattern + "*"
61 elif len(args) == 0:
64 elif len(args) == 0:
62 final = len(input_hist)
65 final = len(input_hist)
General Comments 0
You need to be logged in to leave comments. Login now