##// END OF EJS Templates
%history -g should show line numbers automatically.
Thomas Kluyver -
Show More
@@ -650,6 +650,7 b" def magic_history(self, parameter_s = ''):"
650 if 'g' in opts: # Glob search
650 if 'g' in opts: # Glob search
651 pattern = "*" + args + "*" if args else "*"
651 pattern = "*" + args + "*" if args else "*"
652 hist = history_manager.search(pattern, raw=raw, output=get_output)
652 hist = history_manager.search(pattern, raw=raw, output=get_output)
653 print_nums = True
653 elif 'l' in opts: # Get 'tail'
654 elif 'l' in opts: # Get 'tail'
654 try:
655 try:
655 n = int(args)
656 n = int(args)
General Comments 0
You need to be logged in to leave comments. Login now